Sha256: 1171004b876f4782530fac7c91338791908c95e15ed1919446538ee253684e4f

Contents?: true

Size: 772 Bytes

Versions: 5

Compression:

Stored size: 772 Bytes

Contents

require 'generators/resty/base'
module Resty
  module Generators
    class SetupGenerator < Base

      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 base_package
        name + ".client"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
resty-generators-0.7.3 lib/generators/resty/setup/setup_generator.rb~
resty-generators-0.7.2 lib/generators/resty/setup/setup_generator.rb~
resty-generators-0.7.1 lib/generators/resty/setup/setup_generator.rb~
resty-generators-0.7.0 lib/generators/resty/setup/setup_generator.rb~
resty-generators-0.6.0 lib/generators/resty/setup/setup_generator.rb~