Module: Syncr

Extended by:
Syncr
Included in:
Syncr
Defined in:
lib/syncr.rb,
lib/syncr/rsync.rb,
lib/syncr/version.rb,
lib/syncr/listener.rb,
lib/syncr/listener_set.rb

Defined Under Namespace

Classes: Listener, ListenerSet, Rsync

Constant Summary collapse

RsyncNotInstalledError =
Class.new(StandardError)
VERSION =

Syncr version

"0.2.0"

Instance Method Summary collapse

Instance Method Details

#deprecated(old, new) ⇒ Object


23
24
25
# File 'lib/syncr.rb', line 23

def deprecated(old, new)
  STDERR.puts "WARNING: #{old} is deprecated. Use #{new}"
end

#new(*args) ⇒ Object

Deprecated. See Syncr::Listener#initialize


18
19
20
21
# File 'lib/syncr.rb', line 18

def new(*args)
  deprecated "Syncr#initialize", "Syncr::Listener#initialize"
  Listener.new(*args)
end

#rsync(*args) ⇒ Object

Forwards to Syncr::Rsync::rsync. See Syncr::Rsync::rsync


7
8
9
# File 'lib/syncr.rb', line 7

def rsync(*args)
  Rsync.rsync(*args)
end

#start(*args) ⇒ Object

Deprecated. See Syncr::Listener::start


12
13
14
15
# File 'lib/syncr.rb', line 12

def start(*args)
  deprecated "Syncr::start", "Syncr::Listener::start"
  Listener.new(*args).start
end