ztk 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8badf087e5931acd921eb426237ac5051ca030be
4
- data.tar.gz: 9205a2b46ab8398b6febad97032c0f97025e180d
3
+ metadata.gz: dd68d97935db83e53b34db76a8c2fc66b383dbf7
4
+ data.tar.gz: 851497e4499a72195f60da2fae440d3b348f7250
5
5
  SHA512:
6
- metadata.gz: 0fea23299111a92fd68dc656dc58df2a8aeea022094ca001ca0b3fc7367e713739f87b0b8bc9a267777f1b8ecdea131be3276d6eb56d16b47cf354256ca444f2
7
- data.tar.gz: 16205e8f74d1df7a6c2883c0dad97d1071265a36dd6ca7d2113af9ffacd4dfe41014a1083c60bdc98ab7bcf085d02439354d270fcd453647a06e9c06234a23de
6
+ metadata.gz: e6a0aee03b36ce204098a9c5e1224ba1ac02404855335c12b8b56d058844e15aa1ade9af1c7671c43c8ffd74a137dc7b5cefc8fc28b473cc190c2ea1ee3a9895
7
+ data.tar.gz: 3bfd95f46161dfe5b3b2368932cb6fe0060ce166912a0e7a431ce3ac199ddc05ce55c2e7cc138c71ed44e3fb8d22556982ba551d5c82441054b9613a4b7940ac
data/lib/ztk/ssh/exec.rb CHANGED
@@ -47,7 +47,12 @@ module ZTK
47
47
  stderr_header = false
48
48
 
49
49
  begin
50
- ZTK::RescueRetry.try(:ui => config.ui, :tries => ZTK::SSH::RESCUE_RETRY_ATTEMPTS, :raise => Timeout::Error, :on_retry => method(:on_retry)) do
50
+ ZTK::RescueRetry.try(
51
+ :ui => config.ui,
52
+ :tries => ZTK::SSH::RESCUE_RETRY_ATTEMPTS,
53
+ :raise => [Timeout::Error, Resque::TermException],
54
+ :on_retry => method(:on_retry)
55
+ ) do
51
56
  Timeout.timeout(options.timeout) do
52
57
 
53
58
  channel = ssh.open_channel do |chan|
data/lib/ztk/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "2.1.1"
4
+ VERSION = "2.2.0"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport