remote_run 0.1.2 → 0.1.3

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.
@@ -69,12 +69,6 @@ module RemoteRun
69
69
  end
70
70
  @hosts
71
71
  end
72
-
73
- def start_ssh_master_connections
74
- hosts.each do |host|
75
- host.start_ssh_master_connection
76
- end
77
- end
78
72
  end
79
73
 
80
74
  class TaskManager
@@ -2,7 +2,7 @@ module RemoteRun
2
2
  class Host
3
3
  FAIL = 1
4
4
  PASS = 0
5
- SSH_CONFIG = " -o ControlMaster=auto -o ControlPath=~/.ssh/master-%l-%r@%h:%p -o NumberOfPasswordPrompts=0 -o StrictHostKeyChecking=no -4 "
5
+ SSH_CONFIG = " -o NumberOfPasswordPrompts=0 -o StrictHostKeyChecking=no -4 "
6
6
  attr_reader :hostname
7
7
 
8
8
  def initialize(hostname)
@@ -16,7 +16,6 @@ module RemoteRun
16
16
 
17
17
  def run
18
18
  setup_unlock_on_exit
19
- start_ssh_master_connections
20
19
  sync_working_copy_to_temp_location
21
20
  start_tasks
22
21
  wait_for_tasks_to_finish
@@ -34,10 +33,6 @@ module RemoteRun
34
33
  end
35
34
  end
36
35
 
37
- def start_ssh_master_connections
38
- @host_manager.start_ssh_master_connections
39
- end
40
-
41
36
  def sync_working_copy_to_temp_location
42
37
  log("Creating temporary copy of #{@configuration.local_path} in #{@configuration.temp_path}...")
43
38
  excludes = @configuration.exclude.map { |dir| "--exclude '#{dir}'"}
@@ -130,10 +125,6 @@ module RemoteRun
130
125
  @children.each do |task|
131
126
  child_pid = task.pid
132
127
  if task_is_finished?(child_pid)
133
- unless $?.success?
134
- @failed << child_pid
135
- log("Task '#{task.command}' failed on #{task.host.hostname}")
136
- end
137
128
  @results << $?.exitstatus
138
129
  @children.delete(task)
139
130
  end
@@ -145,7 +136,7 @@ module RemoteRun
145
136
  end
146
137
 
147
138
  def display_log
148
- now = Time.now.strftime("%S")[0]
139
+ now = Time.now.strftime("%M")[0]
149
140
  unless now == @last_timestamp
150
141
  log("Waiting on #{@task_manager.count} of #{@starting_number_of_tasks} tasks to start.") if @task_manager.count > 0
151
142
  log("Waiting on #{@children.length} of #{@starting_number_of_tasks - @task_manager.count} started tasks to finish. #{@failed.size} failed.") if @children.length > 0
@@ -1,3 +1,3 @@
1
1
  module RemoteRun
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -18,17 +18,6 @@ describe RemoteRun::Configuration::HostManager do
18
18
  subject.hosts.should == [host]
19
19
  end
20
20
  end
21
-
22
- describe "#start_ssh_master_connections" do
23
- before do
24
- subject.add(host)
25
- end
26
-
27
- it "asks each host to start their ssh master connection" do
28
- host.should_receive(:start_ssh_master_connection)
29
- subject.start_ssh_master_connections
30
- end
31
- end
32
21
  end
33
22
 
34
23
  describe RemoteRun::Configuration::TaskManager do
@@ -8,13 +8,6 @@ describe RemoteRun::Runner do
8
8
  subject { runner }
9
9
  it { should be }
10
10
 
11
- describe "#start_ssh_master_connections" do
12
- it "should delegate to the host manager" do
13
- host_manager.should_receive(:start_ssh_master_connections)
14
- runner.start_ssh_master_connections
15
- end
16
- end
17
-
18
11
  describe "#start_task" do
19
12
  let(:task) { RemoteRun::Task.new }
20
13
  let(:host) { double(:host) }
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.2
4
+ version: 0.1.3
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: 2011-09-13 00:00:00.000000000Z
12
+ date: 2011-10-31 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
16
- requirement: &2173524580 !ruby/object:Gem::Requirement
16
+ requirement: &2169342220 !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: *2173524580
24
+ version_requirements: *2169342220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2173523920 !ruby/object:Gem::Requirement
27
+ requirement: &2169341540 !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: *2173523920
35
+ version_requirements: *2169341540
36
36
  description: Can be used as a parallel unit test runner
37
37
  email:
38
38
  - casecommons-dev@googlegroups.com
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  segments:
75
75
  - 0
76
- hash: 3135936709983633521
76
+ hash: -1981659961289074609
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
@@ -82,10 +82,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  segments:
84
84
  - 0
85
- hash: 3135936709983633521
85
+ hash: -1981659961289074609
86
86
  requirements: []
87
87
  rubyforge_project: remote_run
88
- rubygems_version: 1.8.10
88
+ rubygems_version: 1.8.11
89
89
  signing_key:
90
90
  specification_version: 3
91
91
  summary: Run N shell scripts on a pool of remote hosts