Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.
Open
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
6 changes: 6 additions & 0 deletions lib/cap-ec2/capistrano.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ def ec2_handler
@ec2_handler ||= CapEC2::EC2Handler.new
end

def ec2_roles(names, options={})
names.each do |name|
ec2_role(name, options)
end
end

def ec2_role(name, options={})
ec2_handler.get_servers_for_role(name).each do |server|
env.role(name, CapEC2::Utils.contact_point(server),
Expand Down