screwcap 0.7.3 → 0.7.4
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/Rakefile +1 -1
- data/lib/screwcap/runner.rb +10 -5
- data/lib/screwcap.rb +1 -1
- data/screwcap.gemspec +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Hoe.plugin :newgem
|
|
11
11
|
# Generate all the Rake tasks
|
12
12
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
13
|
$hoe = Hoe.spec 'screwcap' do
|
14
|
-
self.version = '0.7.
|
14
|
+
self.version = '0.7.4'
|
15
15
|
self.developer 'Grant Ammons', 'grant@pipelinedeals.com'
|
16
16
|
self.rubyforge_name = self.name # TODO this is default value
|
17
17
|
self.extra_deps = [['net-ssh','>= 2.0.23'],['net-ssh-gateway','>=1.0.1'], ['net-scp','>=1.0.4']]
|
data/lib/screwcap/runner.rb
CHANGED
@@ -26,12 +26,16 @@ class Runner
|
|
26
26
|
ret = case command[:type]
|
27
27
|
when :remote
|
28
28
|
threads = []
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
if command[:parallel] == false
|
30
|
+
connections.each { |connection| run_remote_command(command, connection, options) }
|
31
|
+
else
|
32
|
+
connections.each do |connection|
|
33
|
+
threads << Thread.new(connection) do |conn|
|
34
|
+
run_remote_command(command, conn, options)
|
35
|
+
end
|
32
36
|
end
|
37
|
+
threads.each {|t| t.join }
|
33
38
|
end
|
34
|
-
threads.each {|t| t.join }
|
35
39
|
when :local
|
36
40
|
ret = `#{command[:command]}`
|
37
41
|
command[:stdout] = ret
|
@@ -55,7 +59,7 @@ class Runner
|
|
55
59
|
command[:block].call
|
56
60
|
end
|
57
61
|
end
|
58
|
-
_log "
|
62
|
+
_log "\nComplete\n", :color => :blue
|
59
63
|
task.__built_commands # for tests
|
60
64
|
end
|
61
65
|
|
@@ -72,6 +76,7 @@ class Runner
|
|
72
76
|
_log(" O: #{command[:stdout]}\n", :color => :green)
|
73
77
|
else
|
74
78
|
_log(".", :color => :green)
|
79
|
+
$stdout.flush
|
75
80
|
end
|
76
81
|
else
|
77
82
|
_errorlog(" E: (#{options[:address]}): #{command[:command]} return exit code: #{exit_code}\n", :color => :red) if exit_code != 0
|
data/lib/screwcap.rb
CHANGED
data/screwcap.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screwcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 4
|
10
|
+
version: 0.7.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Grant Ammons
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-30 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|