class Rudy::AWS::EC2::Instance
Public Instance Methods
degraded?()
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 34 def degraded?; self.state && self.state == 'degraded'; end
init()
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 22 def init @groups ||= [] end
pending?()
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 32 def pending?; self.state && self.state == 'pending'; end
running?()
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 31 def running?; self.state && self.state == 'running'; end
shutting_down?()
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 35 def shutting_down?; self.state && self.state == 'shutting-down'; end
terminated?()
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 33 def terminated?; self.state && self.state == 'terminated'; end
to_s(*args)
click to toggle source
# File lib/rudy/aws/ec2/instance.rb, line 26 def to_s(*args) groups = [@groups].flatten.compact.join(', ') [self.awsid.bright, self.state, self.dns_public, groups].join '; ' end