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.



565
566
567
568
569
# File 'lib/cloud/dummy.rb', line 565

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.



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

def failed
  @failed
end

#ip_addressObject (readonly)

Returns the value of attribute ip_address.



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

def ip_address
  @ip_address
end

Instance Method Details

#failed?Boolean

Returns:

  • (Boolean)


575
576
577
# File 'lib/cloud/dummy.rb', line 575

def failed?
  failed
end

#ip_address_for_az(az_name) ⇒ Object



571
572
573
# File 'lib/cloud/dummy.rb', line 571

def ip_address_for_az(az_name)
  @azs_to_ip[az_name]
end