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) ⇒ 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

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

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