Sha256: b7a2e6afe9bbbd7dfc678ebdcfc8238499497f55bcf1ffb599b0a6f5d927067b
Contents?: true
Size: 815 Bytes
Versions: 2
Compression:
Stored size: 815 Bytes
Contents
module Playmo module Recipes class CapistranoRecipe < Playmo::Recipe source_root File.expand_path('../templates/capistrano_recipe', __FILE__) def setup question "Would you like to deploy project with Capistrano?" => :install_capistrano end def install_capistrano gem 'capistrano' # TODO: Copy deploy.rb Event.events.listen(:after_install) do |event_data| capify! remove_file "config/deploy.rb" template "deploy.rb", "config/deploy.rb" end end end end end # Write down this recipe to our Cookbook if it's available require File.dirname(__FILE__) + '/rspec_recipe' Playmo::Cookbook.instance.insert_after(Playmo::Recipes::RspecRecipe, Playmo::Recipes::CapistranoRecipe) if defined?(Playmo::Cookbook)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playmo-0.0.18 | lib/playmo/recipes/capistrano_recipe.rb |
playmo-0.0.17 | lib/playmo/recipes/capistrano_recipe.rb |