Module: Capistrano::DSL::Ec2
- Defined in:
- lib/cap-ec2/capistrano.rb
Instance Method Summary collapse
Instance Method Details
#ec2_handler ⇒ Object
17 18 19 |
# File 'lib/cap-ec2/capistrano.rb', line 17 def ec2_handler @ec2_handler ||= CapEC2::EC2Handler.new end |
#ec2_role(name, options = {}) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/cap-ec2/capistrano.rb', line 21 def ec2_role(name, ={}) ec2_handler.get_servers_for_role(name).each do |server| env.role(name, CapEC2::Utils.contact_point(server), (, server)) end end |
#env ⇒ Object
28 29 30 |
# File 'lib/cap-ec2/capistrano.rb', line 28 def env Configuration.env end |