Class: Playmo::Recipes::CapistranoRecipe
- Inherits:
-
Playmo::Recipe
- Object
- Rails::Generators::Base
- Playmo::Recipe
- Playmo::Recipes::CapistranoRecipe
- Defined in:
- lib/playmo/recipes/capistrano_recipe.rb
Instance Attribute Summary
Attributes inherited from Playmo::Recipe
#application_name, #question_instance, #silents
Instance Method Summary collapse
Methods inherited from Playmo::Recipe
#cook!, #question, #retrieve, #silently, #store
Instance Method Details
#install_capistrano ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/playmo/recipes/capistrano_recipe.rb', line 10 def install_capistrano gem 'capistrano' # TODO: Copy deploy.rb Event.events.listen(:after_install) do |event_data| capify! end end |
#setup ⇒ Object
6 7 8 |
# File 'lib/playmo/recipes/capistrano_recipe.rb', line 6 def setup question "Would you like to deploy project with Capistrano?" => :install_capistrano end |