module Capistrano::Asg::Aws::EC2
Provide EC2
client and resource information
Public Instance Methods
ec2_resource()
click to toggle source
# File lib/capistrano/asg/aws/ec2.rb, line 13 def ec2_resource @_ec2_resource ||= ::Aws::EC2::Resource.new(client: ec2_client) end
reset_ec2_objects()
click to toggle source
# File lib/capistrano/asg/aws/ec2.rb, line 17 def reset_ec2_objects @_ec2_resource = nil end
Private Instance Methods
ec2_client()
click to toggle source
# File lib/capistrano/asg/aws/ec2.rb, line 23 def ec2_client ::Aws::EC2::Client.new(region: region, credentials: credentials) end