right_chimp 1.1.0 → 1.1.1

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/CHANGES CHANGED
@@ -121,3 +121,7 @@ Version 1.0.9
121
121
  Version 1.1.0
122
122
  -------------
123
123
  * Feature: Add a job state called 'holding' where jobs can be held until the user queues them
124
+
125
+ Version 1.1.1
126
+ -------------
127
+ * Bugfix: Enable timeouts on server arrays
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- right_chimp (1.0.7)
4
+ right_chimp (1.1.1)
5
5
  nokogiri (~> 1.5.9)
6
6
  progressbar (~> 0.11.0)
7
7
  rake (~> 0.9.2.2)
@@ -11,23 +11,23 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (3.2.13)
15
- i18n (= 0.6.1)
14
+ activesupport (3.2.15)
15
+ i18n (~> 0.6, >= 0.6.4)
16
16
  multi_json (~> 1.0)
17
17
  diff-lcs (1.1.3)
18
- highline (1.6.19)
19
- i18n (0.6.1)
20
- json (1.8.0)
21
- mime-types (1.23)
22
- multi_json (1.7.7)
23
- net-ssh (2.6.7)
18
+ highline (1.6.20)
19
+ i18n (0.6.5)
20
+ json (1.8.1)
21
+ mime-types (2.0)
22
+ multi_json (1.8.2)
23
+ net-ssh (2.7.0)
24
24
  nokogiri (1.5.10)
25
25
  progressbar (0.11.0)
26
26
  rake (0.9.2.2)
27
27
  rest-client (1.6.7)
28
28
  mime-types (>= 1.16)
29
- rest_connection (1.0.10)
30
- activesupport
29
+ rest_connection (1.0.11)
30
+ activesupport (< 4.0.0)
31
31
  highline
32
32
  json
33
33
  net-ssh
@@ -652,6 +652,7 @@ module Chimp
652
652
  :exec => queue_executable,
653
653
  :inputs => @inputs,
654
654
  :template => queue_template,
655
+ :timeout => @timeout,
655
656
  :verbose => @@verbose,
656
657
  :quiet => @@quiet
657
658
  )
@@ -8,11 +8,16 @@ module Chimp
8
8
  audit_entry = []
9
9
  options = @inputs
10
10
 
11
+ if @timeout < 300
12
+ Log.error "timeout was less than 5 minutes! resetting to 5 minutes"
13
+ @timeout = 300
14
+ end
15
+
11
16
  audit_entry = @array.run_script_on_instances(@exec, @server['href'], options)
12
17
 
13
18
  if audit_entry
14
19
  audit_entry.each do |a|
15
- a.wait_for_completed
20
+ a.wait_for_completed("no audit link available",@timeout)
16
21
  end
17
22
  else
18
23
  Log.warn "No audit entries returned for job_id=#{@job_id}"
@@ -6,9 +6,9 @@ module Chimp
6
6
  class Executor
7
7
  attr_accessor :server, :array, :exec, :inputs, :template, :owner, :group,
8
8
  :job_id, :status, :dry_run, :verbose, :quiet, :timeout,
9
- :retry_count, :retry_sleep, :time_start, :time_end
9
+ :retry_count, :retry_sleep, :time_start, :time_end, :error
10
10
 
11
- attr_reader :error, :results
11
+ attr_reader :results
12
12
 
13
13
  STATUS_NONE = :none
14
14
  STATUS_HOLDING = :holding
@@ -1,3 +1,3 @@
1
1
  module Chimp
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_chimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-12 00:00:00.000000000 Z
12
+ date: 2013-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest_connection