Class: Xssh::Aws::EC2

Inherits:
Object
  • Object
show all
Defined in:
lib/xssh/aws/ec2.rb

Instance Method Summary collapse

Constructor Details

#initializeEC2

Returns a new instance of EC2.



7
8
9
# File 'lib/xssh/aws/ec2.rb', line 7

def initialize
  @ec2        = ::Aws::EC2::Resource.new
end

Instance Method Details

#instances(cache: false) ⇒ Object



11
12
13
# File 'lib/xssh/aws/ec2.rb', line 11

def instances(cache: false)
  @instances ||= @ec2.instances
end