Class: TradeTracker::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TradeTracker::ConfigGenerator
- Defined in:
- lib/generators/trade_tracker/config_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
9 10 11 12 |
# File 'lib/generators/trade_tracker/config_generator.rb', line 9 def copy_files say_status '', "Copying configuration file... \n", :blue copy_file 'trade_tracker.yml', 'config/trade_tracker.yml' end |
#print_manual ⇒ Object
14 15 16 17 18 |
# File 'lib/generators/trade_tracker/config_generator.rb', line 14 def print_manual say_status 'OK', 'Done.', :green say "\nRemember to fill in your campaign_id and product_id in config/trade_tracker.yml", :yellow say "Further implementation details can be found at http://github.com/blimp/trade_tracker\n", :yellow end |