remote_run 0.1.5 → 0.1.6
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/remote_run/runner.rb +1 -1
- data/lib/remote_run/version.rb +1 -1
- data/spec/remote_run/runner_spec.rb +19 -1
- metadata +8 -8
data/lib/remote_run/runner.rb
CHANGED
@@ -39,7 +39,7 @@ module RemoteRun
|
|
39
39
|
def sync_working_copy_to_temp_location
|
40
40
|
log("Creating temporary copy of #{@configuration.local_path} in #{@configuration.temp_path}...")
|
41
41
|
excludes = @configuration.exclude.map { |dir| "--exclude '#{dir}'"}
|
42
|
-
system("rsync #{
|
42
|
+
system("rsync #{@configuration.rsync_options} --delete-excluded #{excludes.join(" ")} -q #{@configuration.local_path}/ #{@configuration.temp_path}/")
|
43
43
|
log("Done.")
|
44
44
|
end
|
45
45
|
|
data/lib/remote_run/version.rb
CHANGED
@@ -3,7 +3,8 @@ require 'spec_helper'
|
|
3
3
|
describe RemoteRun::Runner do
|
4
4
|
let(:host_manager) { double(:host_manager) }
|
5
5
|
let(:task_manager) { double(:task_manager, count: 0) }
|
6
|
-
let(:configuration) { double(:configuration, before_task: nil, after_task: nil,around_task: nil,
|
6
|
+
let(:configuration) { double(:configuration, quiet: true, before_task: nil, after_task: nil,around_task: nil,
|
7
|
+
task_manager: task_manager, host_manager: host_manager) }
|
7
8
|
let(:runner) { RemoteRun::Runner.new(configuration) }
|
8
9
|
subject { runner }
|
9
10
|
it { should be }
|
@@ -23,4 +24,21 @@ describe RemoteRun::Runner do
|
|
23
24
|
its(:host) { should == host }
|
24
25
|
end
|
25
26
|
end
|
27
|
+
|
28
|
+
describe "#sync_working_copy_to_temp_location" do
|
29
|
+
subject { runner.sync_working_copy_to_temp_location }
|
30
|
+
|
31
|
+
before do
|
32
|
+
configuration.stub(:local_path)
|
33
|
+
configuration.stub(:temp_path)
|
34
|
+
configuration.stub(:rsync_options)
|
35
|
+
configuration.stub(:exclude).and_return([])
|
36
|
+
end
|
37
|
+
|
38
|
+
it "issue a command to rsync the local working copy to a temporary location" do
|
39
|
+
runner.should_receive(:system)
|
40
|
+
subject
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
26
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_run
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-04 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153233200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153233200
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153232700 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153232700
|
36
36
|
description: Can be used as a parallel unit test runner
|
37
37
|
email:
|
38
38
|
- casecommons-dev@googlegroups.com
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash: -
|
77
|
+
hash: -667704604154805090
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
none: false
|
80
80
|
requirements:
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
segments:
|
85
85
|
- 0
|
86
|
-
hash: -
|
86
|
+
hash: -667704604154805090
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project: remote_run
|
89
89
|
rubygems_version: 1.8.13
|