Class: Sugarcrm::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/sugarcrm/config/config_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/rails/generators/sugarcrm/config/config_generator.rb', line 8

def self.source_root
  @_sugarcrm_source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#create_config_fileObject



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_fileObject



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