Sha256: cc70f25126848aff43ef5d93bbf06207df949744484e9786ee286d9c4f8d0cbd

Contents?: true

Size: 721 Bytes

Versions: 5

Compression:

Stored size: 721 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!
        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

5 entries across 5 versions & 1 rubygems

Version Path
playmo-0.0.14 lib/playmo/recipes/capistrano_recipe.rb
playmo-0.0.13 lib/playmo/recipes/capistrano_recipe.rb
playmo-0.0.12 lib/playmo/recipes/capistrano_recipe.rb
playmo-0.0.11 lib/playmo/recipes/capistrano_recipe.rb
playmo-0.0.10 lib/playmo/recipes/capistrano_recipe.rb