Class: HoptoadGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HoptoadGenerator
- Defined in:
- lib/rails/generators/hoptoad/hoptoad_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/rails/generators/hoptoad/hoptoad_generator.rb', line 8 def self.source_root @_hoptoad_source_root ||= File.("../../../../../generators/hoptoad/templates", __FILE__) end |
Instance Method Details
#install ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rails/generators/hoptoad/hoptoad_generator.rb', line 12 def install ensure_api_key_was_configured ensure_plugin_is_not_present append_capistrano_hook generate_initializer unless api_key_configured? test_hoptoad end |