Module: Kiel::Cloud::AWSBase

Included in:
AWS, RightAWS
Defined in:
lib/kiel/cloud/aws_base.rb

Constant Summary collapse

INSTANCE_STARTUP_TIMEOUT =
120

Instance Method Summary collapse

Instance Method Details

#exists?(tags) ⇒ Boolean

returns true, if an image with the given tags exists

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


16
17
18
19
20
# File 'lib/kiel/cloud/aws_base.rb', line 16

def exists? tags
    raise ArgumentError, "AWS.exists? with empty tags" if tags.empty?
    
    image_by_tags tags 
end