Class: Fog::OpenStack::Compute::Service
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Compute::Service
show all
- Defined in:
- lib/fog/openstack/compute/models/service.rb
Instance Attribute Summary
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Model
#create, #initialize, #save, #update
Instance Method Details
#destroy ⇒ Object
34
35
36
37
38
|
# File 'lib/fog/openstack/compute/models/service.rb', line 34
def destroy
requires :id
service.delete_service(id)
true
end
|
#disable ⇒ Object
24
25
26
27
|
# File 'lib/fog/openstack/compute/models/service.rb', line 24
def disable
requires :binary, :host
service.disable_service(host, binary)
end
|
#disable_and_log_reason ⇒ Object
29
30
31
32
|
# File 'lib/fog/openstack/compute/models/service.rb', line 29
def disable_and_log_reason
requires :binary, :host, :disabled_reason
service.disable_service_log_reason(host, binary, disabled_reason)
end
|
#enable ⇒ Object
19
20
21
22
|
# File 'lib/fog/openstack/compute/models/service.rb', line 19
def enable
requires :binary, :host
service.enable_service(host, binary)
end
|