Class: Ogone::ConfigGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



10
11
12
13
14
# File 'lib/generators/ogone/config_generator.rb', line 10

def copy_files
  say_status "", "time to put configuration files in place... \n", :blue
  copy_file "ogone.yml", "config/ogone.yml"
  copy_file "ogone.rb", "config/initializers/ogone.rb"
end


16
17
18
19
20
# File 'lib/generators/ogone/config_generator.rb', line 16

def print_manual
  say_status "OK", "...configuration files are in place.", :green
  say "\nNow it's time to change the example documentation in 'config/ogone.yml' to your ogone details.", :bold
  say "More information can be found on https://github.com/robinhoudmeyers/ogone-rails or http://www.ogone.com.\n"
end