Sha256: 92c61a4c5867accfc7ecc1f9e16eff5fbaf1b5e26ef71a905ca4ebf422ca47f5

Contents?: true

Size: 440 Bytes

Versions: 9

Compression:

Stored size: 440 Bytes

Contents

module Sprout
  ##
  # This is where you describe your new Generator.
  class <%= input.camel_case %>Generator < Generator::Base
    
    ##
    # This is how you add a parameter to your generator
    #
    #   # @return [String] Say fwee!
    #   add_param :fwee, String, { :default => "fwee" }
    #
    def manifest
      directory input.snake_case do
        template "#{input.camel_case}<%= extension %>"
      end
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sprout-1.1.18.pre lib/sprout/generators/generator/templates/generator_class.erb
sprout-1.1.17.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.16.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.15.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.14.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.13.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.11.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.10.pre lib/sprout/generators/generator/templates/generator_class.rb
sprout-1.1.7.pre lib/sprout/generators/generator/templates/generator_class.rb