Class: ForemanMco::Command::ServiceBase

Inherits:
Base
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/foreman_mco/command/service_commands.rb

Direct Known Subclasses

ServiceStatus, StartService, StopService

Instance Attribute Summary collapse

Attributes inherited from Base

#filters

Instance Method Summary collapse

Methods inherited from Base

#execute, #mco_proxy

Constructor Details

#initialize(attrs) ⇒ ServiceBase

Returns a new instance of ServiceBase.



8
9
10
11
# File 'app/models/foreman_mco/command/service_commands.rb', line 8

def initialize(attrs)
  super
  @service_name = attrs[:service_name]
end

Instance Attribute Details

#service_nameObject (readonly)

Returns the value of attribute service_name.



5
6
7
# File 'app/models/foreman_mco/command/service_commands.rb', line 5

def service_name
  @service_name
end