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 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.3'
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']]
@@ -26,12 +26,16 @@ class Runner
26
26
  ret = case command[:type]
27
27
  when :remote
28
28
  threads = []
29
- connections.each do |connection|
30
- threads << Thread.new(connection) do |conn|
31
- run_remote_command(command, conn, options)
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 "Complete\n", :color => :blue
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
@@ -16,7 +16,7 @@ require 'screwcap/sequence'
16
16
  require 'screwcap/task_manager'
17
17
 
18
18
  module Screwcap
19
- VERSION='0.7.3'
19
+ VERSION='0.7.4'
20
20
 
21
21
  class TaskNotFound < RuntimeError; end
22
22
  class NoServersDefined < Exception; end
data/screwcap.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'bundler/version'
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "screwcap"
9
- s.version = "0.7.3"
9
+ s.version = "0.7.4"
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.author = "Grant Ammons"
12
12
  s.email = ["grant@pipelinedealsco.com"]
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: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 3
10
- version: 0.7.3
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-29 00:00:00 -04:00
18
+ date: 2011-03-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency