Sha256: eaa6bed78e7dce13e82e35b0ce0c2b38209659f0cbfefe4b3b9ff450d4cfd097
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
require 'aws-sdk' require 'capistrano/autoscale/aws/credentials' module Capistrano module Autoscale module Aws module EC2 include Capistrano::Autoscale::Aws::Credentials def ec2_client @ec2_client ||= ::Aws::EC2::Client.new(credentials) end def ec2_instance(instance_id) @ec2_instance ||= ::Aws::EC2::Instance.new(instance_id, client: ec2_client) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-autoscale-1.0.0 | lib/capistrano/autoscale/aws/ec2.rb |