Class: Sugarcrm::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Sugarcrm::Generators::ConfigGenerator
- Defined in:
- lib/rails/generators/sugarcrm/config/config_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/rails/generators/sugarcrm/config/config_generator.rb', line 8 def self.source_root @_sugarcrm_source_root ||= File.("../templates", __FILE__) end |
Instance Method Details
#create_config_file ⇒ Object
12 13 14 |
# File 'lib/rails/generators/sugarcrm/config/config_generator.rb', line 12 def create_config_file template 'sugarcrm.yml', File.join('config', 'sugarcrm.yml') end |
#create_initializer_file ⇒ Object
16 17 18 |
# File 'lib/rails/generators/sugarcrm/config/config_generator.rb', line 16 def create_initializer_file template 'initializer.rb', File.join('config', 'initializers', 'sugarcrm.rb') end |