From d1b05f694c08a506d6fd15d1e1eae276c24d49ae Mon Sep 17 00:00:00 2001 From: Justin Spies Date: Tue, 14 Jul 2015 09:46:41 -0400 Subject: [PATCH 1/2] Allow specifying a separate application name so that sub applications can be deployed without having to change server tags --- lib/cap-ec2/ec2-handler.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/cap-ec2/ec2-handler.rb b/lib/cap-ec2/ec2-handler.rb index 2d54887..7c4125c 100644 --- a/lib/cap-ec2/ec2-handler.rb +++ b/lib/cap-ec2/ec2-handler.rb @@ -51,7 +51,11 @@ def stage end def application - Capistrano::Configuration.env.fetch(:application).to_s + appname = Capistrano::Configuration.env.fetch(:ec2_application).to_s + if appname.nil? || appname.length < 1 + appname = Capistrano::Configuration.env.fetch(:application).to_s + end + appname end def tag(tag_name) From e9fd6633a7c855fc042bdf523733a47f6a54d275 Mon Sep 17 00:00:00 2001 From: Andrew Bobulsky Date: Thu, 30 Nov 2017 18:27:44 -0500 Subject: [PATCH 2/2] Adding aws-sdk-v1 to gemfile --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 821a61c..7727ca0 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,4 @@ source 'https://rubygems.org' # Specify your gem's dependencies in capify-v3-ec2.gemspec gemspec +gem 'aws-sdk-v1'