Sha256: dc79f2348bc3e6d35b957c942338be93ffeac217e59fc3ce5e66b9311e7863df
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
class TestRails3Generator < Rails::Generators::Base def self.source_root File.expand_path('../templates', __FILE__) end argument :argument1, :type => :string, :default => "default_file" def gen_file_with_arg create_file argument1, "content!" end def gen_directory empty_directory "a_directory" end def gen_template template 'file', 'file_template' end def gen_gem_source add_source "http://gems.github.com/" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genspec-0.2.0.prerails3.2 | spec/support/generators/test_rails3/test_rails3_generator.rb |
genspec-0.2.0.prerails3.1 | spec/support/generators/test_rails3/test_rails3_generator.rb |