Class: LSync::DirectoryController

Inherits:
CopyController show all
Defined in:
lib/lsync/controller.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 CopyController

#current, #master, #target

Attributes inherited from BasicController

#logger, #script

Instance Method Summary collapse

Constructor Details

#initialize(script, logger, master, target, current, directory) ⇒ DirectoryController

Returns a new instance of DirectoryController.


200
201
202
203
204
# File 'lib/lsync/controller.rb', line 200

def initialize(script, logger, master, target, current, directory)
	super(script, logger, master, target, current)

	@directory = directory
end

Instance Attribute Details

#directoryObject (readonly)

The directory that the data is being copied within.


207
208
209
# File 'lib/lsync/controller.rb', line 207

def directory
  @directory
end