Class: BootstrapperGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BootstrapperGenerator
- Defined in:
- lib/generators/bootstrapper_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/bootstrapper_generator.rb', line 4 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#copy_files ⇒ Object
8 9 10 |
# File 'lib/generators/bootstrapper_generator.rb', line 8 def copy_files template 'bootstrap.erb', 'db/bootstrap.rb' end |