Class: LSync::CopyController

Inherits:
BasicController show all
Defined in:
lib/lsync/controller.rb

Direct Known Subclasses

DirectoryController

Instance Attribute Summary collapse

Attributes inherited from BasicController

#logger, #script

Instance Method Summary collapse

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

#currentObject (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

#masterObject (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

#targetObject (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