Class: ODisk::Crypter

Inherits:
Opee::Actor
  • Object
show all
Defined in:
lib/odisk/crypter.rb

Overview

Encrypts and decrypts file using GnuPG.

Instance Method Summary (collapse)

Constructor Details

- (Crypter) initialize(options = {})

Returns a new instance of Crypter



6
7
8
9
# File 'lib/odisk/crypter.rb', line 6

def initialize(options={})
  super(options)
  @crypt_queue.ask(:ready, self)
end

Instance Method Details

- (Object) set_options(options)



11
12
13
14
15
16
# File 'lib/odisk/crypter.rb', line 11

def set_options(options)
  super(options)
  @crypt_queue = options[:crypt_queue]
  @copy_queue = options[:copy_queue]
  @fixer = options[:fixer]
end