Class: Guacamole::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Guacamole::Generators::ConfigGenerator
- Defined in:
- lib/rails/generators/guacamole/config/config_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
12 13 14 |
# File 'lib/rails/generators/guacamole/config/config_generator.rb', line 12 def self.source_root @_guacamole_source_root ||= File.('../templates', __FILE__) end |
Instance Method Details
#app_name ⇒ Object
16 17 18 |
# File 'lib/rails/generators/guacamole/config/config_generator.rb', line 16 def app_name Rails.application.class.parent.to_s.underscore end |
#create_config_file ⇒ Object
20 21 22 |
# File 'lib/rails/generators/guacamole/config/config_generator.rb', line 20 def create_config_file template 'guacamole.yml', File.join('config', 'guacamole.yml') end |