Sha256: d5ab245b27c24465ed26df7737e5e3c5c65ac0e304e2420c01b340a6f2103cf4
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
require 'fog' module Stackster class AWS class EC2 def initialize(args) c = args[:config] @connect = Fog::Compute::AWS.new :aws_access_key_id => c.access_key, :aws_secret_access_key => c.secret_key, :region => c.region end def describe_instance(instance) @connect.describe_instances('instance-state-name' => 'running', 'instance-id' => instance).body['reservationSet'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stackster-0.4.4 | lib/stackster/aws/ec2.rb |
stackster-0.4.3 | lib/stackster/aws/ec2.rb |