Class: ForemanMco::Command::BasePackage

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

Direct Known Subclasses

InstallPackage, UninstallPackage

Instance Attribute Summary collapse

Attributes inherited from Base

#filters

Instance Method Summary collapse

Methods inherited from Base

#execute, #mco_proxy

Constructor Details

#initialize(attrs) ⇒ BasePackage

Returns a new instance of BasePackage.



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

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

Instance Attribute Details

#package_nameObject (readonly)

Returns the value of attribute package_name.



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

def package_name
  @package_name
end