Class: Preseason::Recipe::Heroku
- Inherits:
-
Preseason::Recipe
- Object
- Preseason::Recipe
- Preseason::Recipe::Heroku
- Defined in:
- lib/preseason/recipe/heroku.rb
Instance Attribute Summary
Attributes inherited from Preseason::Recipe
Instance Method Summary collapse
Methods inherited from Preseason::Recipe
#initialize, #post_install_hook, #recipe_root
Methods included from Colorize
Methods included from GeneratorContext
Constructor Details
This class inherits a constructor from Preseason::Recipe
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Method Details
#prepare ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/preseason/recipe/heroku.rb', line 2 def prepare return unless config.heroku.use? if yes?("Do you want to setup Heroku? [y/n]") run "heroku auth:login" run "heroku apps:create #{app_name}" run "heroku addons:add pgbackups" run "git push heroku master -u" end end |