Class: Elibri::Connect::ConfigGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_config_fileObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/elibri/connect/config/config_generator.rb', line 6

def create_config_file
  create_file "config/initializers/elibri_config.rb", 
    %Q{Elibri::Connect.setup do |config|
config.login = 'login' #INSERT YOUR LOGIN HERE
config.password = 'password' #INSERT YOUR PASSWORD HERE
config.api_version = 'v1'
config.onix_dialect = '3.0.1'
config.product_model = :product #IF NEEDED CHANGE MODEL NAME HERE 
    end}
end