gorgon 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gorgon/source_tree_syncer.rb +1 -1
- data/lib/gorgon/version.rb +1 -1
- data/spec/source_tree_syncer_spec.rb +1 -1
- metadata +1 -1
@@ -16,7 +16,7 @@ class SourceTreeSyncer
|
|
16
16
|
Dir.chdir(@tempdir)
|
17
17
|
|
18
18
|
exclude_opt = build_exclude_opt
|
19
|
-
@sys_command = "#{SYS_COMMAND} #{OPTS} #{exclude_opt} -r --rsh=ssh #{@source_tree_path}
|
19
|
+
@sys_command = "#{SYS_COMMAND} #{OPTS} #{exclude_opt} -r --rsh=ssh #{@source_tree_path}/ ."
|
20
20
|
system(@sys_command)
|
21
21
|
|
22
22
|
return $?.exitstatus == 0
|
data/lib/gorgon/version.rb
CHANGED
@@ -19,7 +19,7 @@ describe SourceTreeSyncer.new("") do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
it "runs rsync system command with appropriate options" do
|
22
|
-
cmd = /rsync.*-az.*-r --rsh=ssh path\/to\/source
|
22
|
+
cmd = /rsync.*-az.*-r --rsh=ssh path\/to\/source\/\ \./
|
23
23
|
@syncer.should_receive(:system).with(cmd)
|
24
24
|
@syncer.sync
|
25
25
|
end
|