Sha256: e3b76bb54ed35d6f96a029d92d6391e0f8d6e8f52b21ca9dfded9ca88edb6873
Contents?: true
Size: 531 Bytes
Versions: 23
Compression:
Stored size: 531 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_instances i = [] @connect.describe_instances.body['reservationSet'].each do |instance| i << instance end i end end end end
Version data entries
23 entries across 23 versions & 1 rubygems