Class: Orefs::SyncStarter

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

Instance Method Summary (collapse)

Constructor Details

- (SyncStarter) initialize(options = {})

A new instance of SyncStarter



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

def initialize(options={})
  @digester = nil
  @fetcher = nil
  super(options)
  @dir_queue.ask(:ready, self)
end

Instance Method Details

- (Object) set_options(options)



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

def set_options(options)
  super(options)
  @dir_queue = options[:dir_queue]
  @digester = options[:digester]
  @fetcher = options[:fetcher]
  @collector = options[:collector]
end