Class: Taskr::Actions::Taskr4rails

Inherits:
Base
  • Object
show all
Defined in:
lib/taskr/actions.rb

Instance Attribute Summary

Attributes inherited from Base

#parameters, #task

Instance Method Summary collapse

Methods inherited from Base

#initialize, #trigger

Constructor Details

This class inherits a constructor from Taskr::Actions::Base

Instance Method Details

#executeObject



241
242
243
244
245
246
247
248
249
250
251
# File 'lib/taskr/actions.rb', line 241

def execute
  data = {
    :auth => parameters['auth'],
    :ruby_code => parameters['ruby_code']#,
    #:shell_command => parameters['shell_command']
  }
  
  
  Restr.logger = $LOG
  Restr.post(parameters['url'], data)
end