Class: PageEngine::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PageEngine::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/page_engine/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
12 13 14 |
# File 'lib/generators/page_engine/install/install_generator.rb', line 12 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#install ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/generators/page_engine/install/install_generator.rb', line 16 def install if Rails.version < "3.1" create_migrations copy_stylesheets copy_javascripts copy_images end copy_file 'lib/generators/page_engine/templates/page_engine.rb', 'config/initializers/page_engine.rb' end |