Class: Cyclid::API::Plugins::Notifier::Callback

Inherits:
Object
  • Object
show all
Defined in:
app/cyclid/plugins/dispatcher.rb

Overview

Plugins may create a Callback instance that contains callbacks which are called by the Notifier when something happens; the Plugin can then take whatever action they need (E.g. updating an external status)

Direct Known Subclasses

ApiExtension::GithubCallback

Instance Method Summary collapse

Instance Method Details

#completion(_job_id, _status) ⇒ Object

Called when the job completes



73
74
# File 'app/cyclid/plugins/dispatcher.rb', line 73

def completion(_job_id, _status)
end

#log_write(_job_id, _data) ⇒ Object

Called whenever any data is written to the job record log



81
82
# File 'app/cyclid/plugins/dispatcher.rb', line 81

def log_write(_job_id, _data)
end

#status_changed(_job_id, _status) ⇒ Object

Called whenever the job status changes



77
78
# File 'app/cyclid/plugins/dispatcher.rb', line 77

def status_changed(_job_id, _status)
end