Class: PorterGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PorterGenerator
- Defined in:
- lib/generators/porter/porter_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/generators/porter/porter_generator.rb', line 5 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), "templates") end |
Instance Method Details
#create_config_file ⇒ Object
9 10 11 12 |
# File 'lib/generators/porter/porter_generator.rb', line 9 def create_config_file template "porter_config.yml", "config/porter_config.yml" readme "INSTALL" end |