class Opsmgr::Api::InstallStatusResult
Attributes
status[R]
Public Class Methods
new(status_hash)
click to toggle source
# File lib/opsmgr/api/results.rb, line 19 def initialize(status_hash) @status = status_hash['status'] status.freeze fail(ArgumentError, "Unrecognized status: #{status}") unless %w(failed success running).include?(status) end
Public Instance Methods
failed?()
click to toggle source
# File lib/opsmgr/api/results.rb, line 26 def failed? @status == 'failed' end
finished?()
click to toggle source
# File lib/opsmgr/api/results.rb, line 38 def finished? failed? || finished_successfully? end
finished_successfully?()
click to toggle source
# File lib/opsmgr/api/results.rb, line 34 def finished_successfully? @status == 'success' end
pending?()
click to toggle source
# File lib/opsmgr/api/results.rb, line 30 def pending? @status == 'running' end