Class: Mashery::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Mashery::InstallGenerator
- Defined in:
- lib/mashery/generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer_file ⇒ Object
5 6 7 8 |
# File 'lib/mashery/generator.rb', line 5 def create_initializer_file config = %Q{---\nsite_id: '123'\nkey: "abc"\nsecret: "xyz"\nhost: "api.mashery.com"} create_file "config/mashery.yml", config end |