Class: Fog::Compute::OpenStack::Service
Instance Attribute Summary
#project
Instance Method Summary
collapse
#create, #initialize, #save, #update
Instance Method Details
#destroy ⇒ Object
34
35
36
37
38
|
# File 'lib/fog/compute/openstack/models/service.rb', line 34
def destroy
requires :id
service.delete_service(id)
true
end
|
#disable ⇒ Object
24
25
26
27
|
# File 'lib/fog/compute/openstack/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/compute/openstack/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/compute/openstack/models/service.rb', line 19
def enable
requires :binary, :host
service.enable_service(host, binary)
end
|