Class: Bodhi::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bodhi::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/bodhi/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
13 14 15 |
# File 'lib/generators/bodhi/install_generator.rb', line 13 def self.next_migration_number (dirname) ActiveRecord::Generators::Base.next_migration_number (dirname) end |
Instance Method Details
#copy_files ⇒ Object
17 18 19 20 21 |
# File 'lib/generators/bodhi/install_generator.rb', line 17 def copy_files copy_file 'bodhi.rb', 'config/initializers/bodhi.rb' migration_template 'create_metric_values.rb', "db/migrate/create_metric_values.rb" end |