Method: Fog::Network::StormOnDemand::PrivateIps#attached?

Defined in:
lib/fog/storm_on_demand/models/network/private_ips.rb

#attached?(server_id) ⇒ Boolean

Returns:

  • (Boolean)


31
32
33
34
# File 'lib/fog/storm_on_demand/models/network/private_ips.rb', line 31

def attached?(server_id)
  r = service.check_server_attached(:uniq_id => server_id).body
  r['is_attached'].to_i == 1 ? true : false
end