Class: Versioner::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Versioner::InstallGenerator
- Defined in:
- lib/generators/versioner/install/install_generator.rb
Constant Summary collapse
- DEFAULT_SHEBANG =
File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
13 14 15 |
# File 'lib/generators/versioner/install/install_generator.rb', line 13 def create_initializer template 'config/initializers/versioner.rb.erb', 'config/initializers/versioner.rb' end |
#create_version_file ⇒ Object
9 10 11 |
# File 'lib/generators/versioner/install/install_generator.rb', line 9 def create_version_file template 'config/versioner.yml.erb', 'config/versioner.yml' end |