Class: Fog::Compute::XenServer::PBD

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/xenserver/models/compute/pbd.rb

Instance Method Summary collapse

Instance Method Details

#hostObject



27
28
29
# File 'lib/fog/xenserver/models/compute/pbd.rb', line 27

def host
  service.hosts.get __host
end

#srObject



19
20
21
# File 'lib/fog/xenserver/models/compute/pbd.rb', line 19

def sr
  service.storage_repositories.get __sr
end

#storage_repositoryObject



23
24
25
# File 'lib/fog/xenserver/models/compute/pbd.rb', line 23

def storage_repository
  sr
end

#unplugObject



31
32
33
# File 'lib/fog/xenserver/models/compute/pbd.rb', line 31

def unplug
  service.unplug_pbd reference
end