Class: ForemanMco::CommandStatus

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Taxonomix
Defined in:
app/models/foreman_mco/command_status.rb

Constant Summary collapse

PENDING =
"pending"
SUCCESS =
"success"
WARNING =
"warning"
FAILURE =
"failure"
TYPES =
[PENDING, SUCCESS, WARNING, FAILURE]

Instance Method Summary collapse

Instance Method Details

#set_default_statusObject



24
25
26
# File 'app/models/foreman_mco/command_status.rb', line 24

def set_default_status
  self.status = PENDING if new_record?
end