Sha256: 77b0ee72540b7917268deb14614dd56dc23024ce40c8cfb2d78517bd9644e584

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

require 'executo/worker'

module Executo
  class EncryptedWorker < Worker
    # @param [String] encrypted_command
    # @param [Array] encrypted_params
    # @param [Hash] encrypted_options
    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
executo-0.3.12 lib/executo/encrypted_worker.rb