Class: LSync::CopyController
- Inherits:
-
BasicController
- Object
- BasicController
- LSync::CopyController
- Defined in:
- lib/lsync/controller.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
The current server controller (the controller for the local machine).
-
#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, current) ⇒ CopyController
constructor
A new instance of CopyController.
Constructor Details
#initialize(script, logger, master, target, current) ⇒ CopyController
Returns a new instance of CopyController.
140 141 142 143 144 145 146 |
# File 'lib/lsync/controller.rb', line 140 def initialize(script, logger, master, target, current) super(script, logger) @master = ServerController.new(script, logger, master) @target = ServerController.new(script, logger, target) @current = ServerController.new(script, logger, current) end |
Instance Attribute Details
#current ⇒ Object (readonly)
The current server controller (the controller for the local machine).
155 156 157 |
# File 'lib/lsync/controller.rb', line 155 def current @current end |
#master ⇒ Object (readonly)
The master server controller (where the data is being copied from).
149 150 151 |
# File 'lib/lsync/controller.rb', line 149 def master @master end |
#target ⇒ Object (readonly)
The target server controller (where the data is being copied to).
152 153 154 |
# File 'lib/lsync/controller.rb', line 152 def target @target end |