Class: Pgbus::Process::Dispatcher::MaintenanceResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/pgbus/process/dispatcher.rb

Overview

Outcome of a single maintenance task in a cycle. Lets run_maintenance distinguish success/failed/skipped and, on failure, carry the error and task name for reporting or summarizing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



62
63
64
# File 'lib/pgbus/process/dispatcher.rb', line 62

def error
  @error
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



62
63
64
# File 'lib/pgbus/process/dispatcher.rb', line 62

def status
  @status
end

#taskObject

Returns the value of attribute task

Returns:

  • (Object)

    the current value of task



62
63
64
# File 'lib/pgbus/process/dispatcher.rb', line 62

def task
  @task
end

Instance Method Details

#skipped?Boolean

Returns:

  • (Boolean)


64
# File 'lib/pgbus/process/dispatcher.rb', line 64

def skipped? = status == :skipped

#success?Boolean

Returns:

  • (Boolean)


63
# File 'lib/pgbus/process/dispatcher.rb', line 63

def success? = status == :success