Method: Fog::Network::StormOnDemand::PrivateIps#attach

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

#attach(server_id) ⇒ Object



21
22
23
24
# File 'lib/fog/storm_on_demand/models/network/private_ips.rb', line 21

def attach(server_id)
  res = service.attach_server_to_private_ip(:uniq_id => server_id).body
  res['attached'].to_i == 1 ? true : false
end