Sha256: 9aea78d61cfbc9a202b03f3314852901a1fa50ff1cfcd3590f9325ad0a0ed002
Contents?: true
Size: 957 Bytes
Versions: 1
Compression:
Stored size: 957 Bytes
Contents
require 'generators/resty/base' module Resty module Generators class SetupGenerator < Base source_root File.expand_path('../templates', __FILE__) arguments.clear # clear name argument from NamedBase argument :gwt_module_name, :type => :string, :required => true def name gwt_module_name end def create_module_file template 'module.gwt.xml', File.join(java_root, name.gsub(/\./, "/"), "#{application_name.underscore}.gwt.xml") end def create_maven_file template 'Mavenfile', File.join("Mavenfile") end def create_entry_point_file template 'EntryPoint.java', File.join(java_root, base_package.gsub(/\./, "/"), "#{application_name}.java") end def create_initializer template 'initializer.rb', File.join('config', 'initializers', 'resty.rb') end def base_package name + ".client" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resty-generators-0.1.0 | lib/generators/resty/setup/setup_generator.rb |