Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Allow specifying a separate application name so that sub applications… #55

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in capify-v3-ec2.gemspec
gemspec
gem 'aws-sdk-v1'
6 changes: 5 additions & 1 deletion lib/cap-ec2/ec2-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down