Class: Orefs::Copier

Inherits:
Opee::Actor
  • Object
show all
Defined in:
lib/orefs/copier.rb

Instance Method Summary (collapse)

Constructor Details

- (Copier) initialize(options = {})

A new instance of Copier



5
6
7
8
9
10
# File 'lib/orefs/copier.rb', line 5

def initialize(options={})
  @ftp = nil
  @ssh = nil
  super(options)
  @copy_queue.ask(:ready, self)
end

Instance Method Details

- (Object) close



19
20
21
22
23
24
# File 'lib/orefs/copier.rb', line 19

def close()
  @ftp.close_channel() unless @ftp.nil?
  @ftp = nil
  @ssh.close() unless @ssh.nil?
  super()
end

- (Object) set_options(options)



12
13
14
15
16
17
# File 'lib/orefs/copier.rb', line 12

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