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.



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

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

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

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