Sha256: 5393b986f1b313c2185dd653d3a395e7bee260780014ee99fe2a1708f75c7e58

Contents?: true

Size: 360 Bytes

Versions: 39

Compression:

Stored size: 360 Bytes

Contents

class TempGenerator < Sprout::Generator::Base

  add_param :source, String, { :default => 'src' }

  set :name, :demo
  set :pkg_name, 'temp_generator'
  set :pkg_version, '1.0.pre'

  def manifest
    directory input do
      directory source do
        template 'Main.as'
      end
    end
  end

  private

  def class_name
    input.camel_case
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
sprout-1.1.18.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.17.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.16.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.15.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.14.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.13.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.11.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.10.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.7.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.5.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.4.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.3.pre test/fixtures/generators/temp_generator.rb
sprout-1.1.2.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.35.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.32.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.31.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.29.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.26.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.25.pre test/fixtures/generators/temp_generator.rb
sprout-1.0.24.pre test/fixtures/generators/temp_generator.rb