Class: TMinus::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TMinus::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/t_minus/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
26 27 28 |
# File 'lib/generators/t_minus/install_generator.rb', line 26 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#copy_configuration_file ⇒ Object
14 15 16 |
# File 'lib/generators/t_minus/install_generator.rb', line 14 def copy_configuration_file copy_file 'prelaunch_config.yml', 'config/prelaunch_config.yml' end |
#create_css_file ⇒ Object
22 23 24 |
# File 'lib/generators/t_minus/install_generator.rb', line 22 def create_css_file create_file 'public/stylesheets/prelaunch.css' end |
#generate_migration ⇒ Object
18 19 20 |
# File 'lib/generators/t_minus/install_generator.rb', line 18 def generate_migration migration_template 'migration.rb', "db/migrate/create_#{table_name}" end |