Class: Bosh::Clouds::Dummy::CreateVmCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/dummy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_address, azs_to_ip, failed) ⇒ CreateVmCommand

Returns a new instance of CreateVmCommand.



558
559
560
561
562
# File 'lib/cloud/dummy.rb', line 558

def initialize(ip_address, azs_to_ip, failed)
  @ip_address = ip_address
  @azs_to_ip = azs_to_ip
  @failed = failed
end

Instance Attribute Details

#failedObject (readonly)

Returns the value of attribute failed.



556
557
558
# File 'lib/cloud/dummy.rb', line 556

def failed
  @failed
end

#ip_addressObject (readonly)

Returns the value of attribute ip_address.



556
557
558
# File 'lib/cloud/dummy.rb', line 556

def ip_address
  @ip_address
end

Instance Method Details

#failed?Boolean

Returns:

  • (Boolean)


568
569
570
# File 'lib/cloud/dummy.rb', line 568

def failed?
  failed
end

#ip_address_for_az(az_name) ⇒ Object



564
565
566
# File 'lib/cloud/dummy.rb', line 564

def ip_address_for_az(az_name)
  @azs_to_ip[az_name]
end