Class: ForemanMco::Command::StopService

Inherits:
ServiceBase show all
Defined in:
app/models/foreman_mco/command/service_commands.rb

Instance Attribute Summary

Attributes inherited from ServiceBase

#service_name

Attributes inherited from Base

#filters

Instance Method Summary collapse

Methods inherited from ServiceBase

#initialize

Methods inherited from Base

#execute, #initialize, #mco_proxy

Constructor Details

This class inherits a constructor from ForemanMco::Command::ServiceBase

Instance Method Details

#remote_callObject



35
36
37
# File 'app/models/foreman_mco/command/service_commands.rb', line 35

def remote_call
  mco_proxy.stop_service(service_name, filters)
end

#to_sObject



39
40
41
# File 'app/models/foreman_mco/command/service_commands.rb', line 39

def to_s
  "service stop #{service_name}"
end