Class: Claws::Collection::EC2

Inherits:
Base
  • Object
show all
Defined in:
lib/claws/collection/ec2.rb

Class Method Summary collapse

Methods inherited from Base

build, connect

Class Method Details

.get(filters = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/claws/collection/ec2.rb', line 8

def self.get(filters = {})
  collection = []
  AWS::EC2.new.instances.each do |instance|
    collection << Claws::EC2::Presenter.new(instance)
  end
  collection
end