Module: Proby
- Defined in:
- lib/proby.rb,
lib/proby/version.rb,
lib/proby/notifier.rb,
lib/proby/exceptions.rb,
lib/proby/proby_task.rb,
lib/proby/resque_plugin.rb,
lib/proby/proby_http_api.rb
Defined Under Namespace
Modules: ResquePlugin Classes: ApiException, AuthFailedException, InvalidApiKeyException, InvalidParameterException, Notifier, ProbyHttpApi, ProbyTask, ProbyTaskStatus
Constant Summary collapse
- VERSION =
"2.0.0"
Class Method Summary collapse
-
.api_key ⇒ Object
Get the api key.
-
.api_key=(api_key) ⇒ Object
Set your Proby API key.
-
.logger ⇒ Object
Get the logger used by Proby.
-
.logger=(logger) ⇒ Object
Set the logger to be used by Proby.
-
.send_finish_notification(proby_task_id = nil, options = {}) ⇒ Fixnum
Send a finish notification for this task to Proby.
-
.send_start_notification(proby_task_id = nil) ⇒ Fixnum
Send a start notification for this task to Proby.
Class Method Details
.api_key ⇒ Object
Get the api key.
27 28 29 |
# File 'lib/proby.rb', line 27 def api_key @api_key end |
.api_key=(api_key) ⇒ Object
Set your Proby API key.
22 23 24 |
# File 'lib/proby.rb', line 22 def api_key=(api_key) @api_key = api_key end |
.logger ⇒ Object
Get the logger used by Proby.
43 44 45 |
# File 'lib/proby.rb', line 43 def logger @logger ||= Logger.new("/dev/null") end |
.logger=(logger) ⇒ Object
Set the logger to be used by Proby.
38 39 40 |
# File 'lib/proby.rb', line 38 def logger=(logger) @logger = logger end |
.send_finish_notification(proby_task_id = nil, options = {}) ⇒ Fixnum
Send a finish notification for this task to Proby
69 70 71 |
# File 'lib/proby.rb', line 69 def send_finish_notification(proby_task_id=nil, ={}) Notifier.send_notification('finish', proby_task_id, ) end |
.send_start_notification(proby_task_id = nil) ⇒ Fixnum
Send a start notification for this task to Proby.
53 54 55 |
# File 'lib/proby.rb', line 53 def send_start_notification(proby_task_id=nil) Notifier.send_notification('start', proby_task_id) end |