Class: ZenboxGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ZenboxGenerator
- Defined in:
- lib/rails/generators/zenbox/zenbox_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/rails/generators/zenbox/zenbox_generator.rb', line 9 def self.source_root @_zenbox_source_root ||= File.("../../../../../generators/zenbox/templates", __FILE__) end |
Instance Method Details
#install ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/rails/generators/zenbox/zenbox_generator.rb', line 13 def install ensure_api_key_was_configured ensure_plugin_is_not_present append_capistrano_hook generate_initializer unless api_key_configured? determine_api_key if heroku? test_zenbox end |