Class: LSync::DirectoryController

Inherits:
ServerController show all
Defined in:
lib/lsync/script.rb

Overview

The directory controller provides event handlers with a unified interface for dealing with a particular backup in a particular directory.

Instance Attribute Summary collapse

Attributes inherited from ServerController

#logger, #script, #server

Instance Method Summary collapse

Methods inherited from ServerController

#run!

Constructor Details

#initialize(script, master, server, directory, logger) ⇒ DirectoryController

Returns a new instance of DirectoryController.



39
40
41
42
43
44
# File 'lib/lsync/script.rb', line 39

def initialize(script, master, server, directory, logger)
	super(script, server, logger)
	
	@master = master
	@directory = directory
end

Instance Attribute Details

#directoryObject (readonly)

The directory that the data is being copied within.



50
51
52
# File 'lib/lsync/script.rb', line 50

def directory
  @directory
end

#masterObject (readonly)

The master server where data is being copied from.



47
48
49
# File 'lib/lsync/script.rb', line 47

def master
  @master
end