Sha256: 3e285e46c26594879bfb8f606c07d730301df04d4979fb9fc39cc8f9cb4e54b5
Contents?: true
Size: 513 Bytes
Versions: 6
Compression:
Stored size: 513 Bytes
Contents
module Opsicle class Instances def initialize(client) @client = client end def data instances(reload: true) end def instances(options={}) # Only call the API again if you need to @instances = nil if options[:reload] @instances ||= @client.api_call('describe_instances', :stack_id => @client.config.opsworks_config[:stack_id] )[:instances] end private :instances end end
Version data entries
6 entries across 6 versions & 1 rubygems