Class: Xssh::Aws::EC2
- Inherits:
-
Object
- Object
- Xssh::Aws::EC2
- Defined in:
- lib/xssh/aws/ec2.rb
Instance Method Summary collapse
-
#initialize ⇒ EC2
constructor
A new instance of EC2.
- #instances(cache: false) ⇒ Object
Constructor Details
#initialize ⇒ EC2
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 |