Class: LSync::DirectoryController
- Inherits:
-
ServerController
- Object
- ServerController
- LSync::DirectoryController
- 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
-
#directory ⇒ Object
readonly
The directory that the data is being copied within.
-
#master ⇒ Object
readonly
The master server where data is being copied from.
Attributes inherited from ServerController
Instance Method Summary collapse
-
#initialize(script, master, server, directory, logger) ⇒ DirectoryController
constructor
A new instance of DirectoryController.
Methods inherited from ServerController
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
#directory ⇒ Object (readonly)
The directory that the data is being copied within.
50 51 52 |
# File 'lib/lsync/script.rb', line 50 def directory @directory end |
#master ⇒ Object (readonly)
The master server where data is being copied from.
47 48 49 |
# File 'lib/lsync/script.rb', line 47 def master @master end |