Class: Orefs::DirSyncJob

Inherits:
Opee::Job
  • Object
show all
Defined in:
lib/orefs/dirsyncjob.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (DirSyncJob) initialize(path)

A new instance of DirSyncJob



16
17
18
19
20
21
22
# File 'lib/orefs/dirsyncjob.rb', line 16

def initialize(path)
  @path = path
  @current_digest = nil
  @previous_digest = nil
  @remote_digest = nil
  @new_digest = nil
end

Instance Attribute Details

- (Object) current_digest

only set by the Digester



8
9
10
# File 'lib/orefs/dirsyncjob.rb', line 8

def current_digest
  @current_digest
end

- (Object) new_digest

new digest to be set locally and remotely



14
15
16
# File 'lib/orefs/dirsyncjob.rb', line 14

def new_digest
  @new_digest
end

- (Object) path (readonly)

relative path from top



6
7
8
# File 'lib/orefs/dirsyncjob.rb', line 6

def path
  @path
end

- (Object) previous_digest

only set by the SyncStarter



10
11
12
# File 'lib/orefs/dirsyncjob.rb', line 10

def previous_digest
  @previous_digest
end

- (Object) remote_digest

only set by the Fetcher



12
13
14
# File 'lib/orefs/dirsyncjob.rb', line 12

def remote_digest
  @remote_digest
end