class Elbas::AWS::Instance
Constants
- STATE_RUNNING
Attributes
aws_counterpart[R]
id[R]
state[R]
Public Class Methods
new(id, public_dns, state)
click to toggle source
# File lib/elbas/aws/instance.rb, line 8 def initialize(id, public_dns, state) @id = id @public_dns = public_dns @state = state @aws_counterpart = aws_namespace::Instance.new id, client: aws_client end
Public Instance Methods
hostname()
click to toggle source
# File lib/elbas/aws/instance.rb, line 15 def hostname @public_dns end
running?()
click to toggle source
# File lib/elbas/aws/instance.rb, line 19 def running? state == STATE_RUNNING end
Private Instance Methods
aws_namespace()
click to toggle source
# File lib/elbas/aws/instance.rb, line 24 def aws_namespace ::Aws::EC2 end