rsync_wrap 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rsync_wrap.rb +3 -1
- metadata +1 -1
data/lib/rsync_wrap.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
require 'socket'
|
6
6
|
require 'ssh_test'
|
7
|
+
require 'logger'
|
7
8
|
|
8
9
|
class RsyncWrap
|
9
10
|
|
@@ -121,7 +122,8 @@ class RsyncWrap
|
|
121
122
|
# Decide to log or not.
|
122
123
|
if @logging == true
|
123
124
|
puts "DEBUG : Logging enabled"
|
124
|
-
|
125
|
+
log = Logger.new('/tmp/rsyncwrap.log','daily')
|
126
|
+
log.debug "#{localDir}"
|
125
127
|
system rCommand
|
126
128
|
else
|
127
129
|
puts "no logging for me"
|