Class: Fog::Compute::OpenStack::Service

Inherits:
OpenStack::Model show all
Defined in:
lib/fog/openstack/models/compute/service.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Model

#project

Instance Method Summary collapse

Methods inherited from OpenStack::Model

#create, #initialize, #save, #update

Constructor Details

This class inherits a constructor from Fog::OpenStack::Model

Instance Method Details

#destroyObject



34
35
36
37
38
# File 'lib/fog/openstack/models/compute/service.rb', line 34

def destroy
  requires :id
  service.delete_service(self.id)
  true
end

#disableObject



24
25
26
27
# File 'lib/fog/openstack/models/compute/service.rb', line 24

def disable
  requires :binary, :host
  service.disable_service(self.host, self.binary)
end

#disable_and_log_reasonObject



29
30
31
32
# File 'lib/fog/openstack/models/compute/service.rb', line 29

def disable_and_log_reason
  requires :binary, :host, :disabled_reason
  service.disable_service_log_reason(self.host, self.binary, self.disabled_reason)
end

#enableObject



19
20
21
22
# File 'lib/fog/openstack/models/compute/service.rb', line 19

def enable
  requires :binary, :host
  service.enable_service(self.host, self.binary)
end