six-rsync 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/rsync.rb +1 -8
- data/lib/six/rsync/lib.rb +7 -1
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/six/rsync.rb
CHANGED
@@ -30,7 +30,7 @@ module Six
|
|
30
30
|
end
|
31
31
|
|
32
32
|
module Rsync
|
33
|
-
VERSION = '0.4.
|
33
|
+
VERSION = '0.4.5'
|
34
34
|
FOLDER = /(.*)\/(.*)/
|
35
35
|
|
36
36
|
case RUBY_PLATFORM
|
@@ -66,13 +66,6 @@ module Six
|
|
66
66
|
config = File.exists?(CONFIG_FILE) ? YAML::load_file(CONFIG_FILE) : nil
|
67
67
|
CONFIG = config ? config : Hash.new
|
68
68
|
|
69
|
-
# which rsync - should return on linux the bin location
|
70
|
-
rsync_installed = begin; %x[rsync --version]; true; rescue; false; end
|
71
|
-
unless rsync_installed
|
72
|
-
puts "rsync command not found"
|
73
|
-
raise RsyncError
|
74
|
-
end
|
75
|
-
|
76
69
|
# No meaning on Cygwin 1.7
|
77
70
|
# ENV['CYGWIN'] = "nontsec"
|
78
71
|
|
data/lib/six/rsync/lib.rb
CHANGED
@@ -34,11 +34,17 @@ module Six
|
|
34
34
|
when /-mingw32$/, /-mswin32$/
|
35
35
|
key = CONFIG[:key] ? CONFIG[:key] : ""
|
36
36
|
@rsh = "-r --rsh=\"'cygnative.exe' plink.exe#{" -i #{key}" unless key.empty?}\""
|
37
|
-
puts @rsh
|
38
37
|
else
|
39
38
|
@rsh = ""
|
40
39
|
end
|
41
40
|
|
41
|
+
# which rsync - should return on linux the bin location
|
42
|
+
rsync_installed = begin; %x[rsync --version]; true; rescue; false; end
|
43
|
+
unless rsync_installed
|
44
|
+
puts "rsync command not found"
|
45
|
+
raise RsyncError
|
46
|
+
end
|
47
|
+
|
42
48
|
@repos_local = {:pack => Hash.new, :wd => Hash.new, :version => 0}
|
43
49
|
@repos_remote = {:pack => Hash.new, :wd => Hash.new, :version => 0}
|
44
50
|
|