Method: Fog::Compute::XenServer::VBD#save

Defined in:
lib/fog/xenserver/models/compute/vbd.rb

#saveObject

[View source]

51
52
53
54
55
# File 'lib/fog/xenserver/models/compute/vbd.rb', line 51

def save
  requires :vdi, :server
  ref = connection.create_vbd attributes[:server], attributes[:vdi], attributes
  merge_attributes connection.vbds.get(ref).attributes
end