Class: Executo::EncryptedWorker

Inherits:
Worker
  • Object
show all
Defined in:
lib/executo/encrypted_worker.rb

Instance Attribute Summary

Attributes inherited from Worker

#flushable_output, #options, #output

Instance Method Summary collapse

Instance Method Details

#perform(encrypted_command, encrypted_params = [], encrypted_options = {}) ⇒ Object

Parameters:

  • encrypted_command (String)
  • encrypted_params (Array) (defaults to: [])
  • encrypted_options (Hash) (defaults to: {})


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/executo/encrypted_worker.rb', line 10

def perform(encrypted_command, encrypted_params = [], encrypted_options = {})
  Executo.config.logger.debug "encrypted_command: #{encrypted_command}"
  Executo.config.logger.debug "encrypted_params: #{encrypted_params}"
  Executo.config.logger.debug "encrypted_options: #{encrypted_options}"

  command = Executo.decrypt(encrypted_command)
  params = Executo.decrypt(encrypted_params)
  options = Executo.decrypt(encrypted_options)

  super(command, params, options)
end