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.
179 180 181 182 183 184 185 |
# File 'lib/lsync/controller.rb', line 179 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).
194 195 196 |
# File 'lib/lsync/controller.rb', line 194 def current @current end |
#master ⇒ Object (readonly)
The master server controller (where the data is being copied from).
188 189 190 |
# File 'lib/lsync/controller.rb', line 188 def master @master end |
#target ⇒ Object (readonly)
The target server controller (where the data is being copied to).
191 192 193 |
# File 'lib/lsync/controller.rb', line 191 def target @target end |