Class: LSync::CopyController
- Inherits:
-
BasicController
- Object
- BasicController
- LSync::CopyController
- Defined in:
- lib/lsync/controller.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#master ⇒ Object
readonly
The master server controller (where the data is being copied from).
-
#target ⇒ Object
readonly
The target server controller (where the data is being copied to).
Attributes inherited from BasicController
Instance Method Summary collapse
-
#initialize(script, logger, master, target) ⇒ CopyController
constructor
A new instance of CopyController.
Constructor Details
#initialize(script, logger, master, target) ⇒ CopyController
Returns a new instance of CopyController.
36 37 38 39 40 41 |
# File 'lib/lsync/controller.rb', line 36 def initialize(script, logger, master, target) super(script, logger) @master = ServerController.new(script, logger, master) @target = ServerController.new(script, logger, target) end |
Instance Attribute Details
#master ⇒ Object (readonly)
The master server controller (where the data is being copied from).
44 45 46 |
# File 'lib/lsync/controller.rb', line 44 def master @master end |
#target ⇒ Object (readonly)
The target server controller (where the data is being copied to).
47 48 49 |
# File 'lib/lsync/controller.rb', line 47 def target @target end |