kumogata 0.4.7 → 0.4.8

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: 9f4c18be7f8c6709036ac84848b986f07c265e32
4
- data.tar.gz: 5e47465957e49072b5ba4d3a7b47d3c9c6ebab86
3
+ metadata.gz: cda577d33103a8aefd39ff524436244625263ccb
4
+ data.tar.gz: 275b524fc1b7c7cdab22d38969d8b853b91c5bf1
5
5
  SHA512:
6
- metadata.gz: c62012998716bbbd4b90a377ffcb06861a246a7d338da5064564a34fc72371d0c0d6ee083182bac71801f695a78fc68f443f9c62a19419d04c312e7e5e22abcf
7
- data.tar.gz: 8544c375e53b762c98000896c6ef4e0b098cb4a6b48113806dfa7206215e54d98b836fe4d112c377a6e0c16e09cd8ca4aab593f752f2e37bee04d28e2e17048c
6
+ metadata.gz: 1e613daf8837305afeed85315f449d882c8829fa7c167762f6541d4d253a1896fa051521cc61f7b367a53735b00537bf0845705a0b4e686f8598b937fee099e2
7
+ data.tar.gz: 3dff24b058d44d8e95a64cdcb29970023404f121c3285aa1da9c221fd5d87a4e0348d8149dfda2fbb787e82dd1d4bbc5624136741b67908f668fa661c2200518
@@ -146,14 +146,16 @@ class Kumogata::PostProcessing
146
146
  stderr_orig = STDERR.dup
147
147
  STDERR.reopen('/dev/null', 'w')
148
148
 
149
- begin
150
- retryable(:tries => connect_tries, :on => Net::SSH::Disconnect, :sleep => retry_interval) do
151
- Net::SSH.start(*args) {|ssh| ssh_exec!(ssh, command, ssh_exec_opts) }
149
+ retryable(:tries => connect_tries, :sleep => retry_interval) do
150
+ begin
151
+ Net::SSH.start(*args) {|ssh| ssh.exec!('echo') }
152
+ rescue Net::SSH::HostKeyMismatch => e
153
+ e.remember_host!
154
+ retry
152
155
  end
153
- rescue Net::SSH::HostKeyMismatch => e
154
- e.remember_host!
155
- retry
156
156
  end
157
+
158
+ Net::SSH.start(*args) {|ssh| ssh_exec!(ssh, command, ssh_exec_opts) }
157
159
  ensure
158
160
  STDERR.reopen(stderr_orig)
159
161
  end
@@ -0,0 +1 @@
1
+ # TODO:
@@ -23,6 +23,7 @@ class Kumogata::Utils
23
23
 
24
24
  if defined?(Gem)
25
25
  filter_path.concat(Gem.path)
26
+ filter_path << Gem.bindir
26
27
  end
27
28
 
28
29
  RbConfig::CONFIG.select {|k, v|
@@ -1,3 +1,3 @@
1
1
  module Kumogata
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-15 00:00:00.000000000 Z
11
+ date: 2014-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -245,6 +245,7 @@ files:
245
245
  - lib/kumogata/ext/string_ext.rb
246
246
  - lib/kumogata/logger.rb
247
247
  - lib/kumogata/post_processing.rb
248
+ - lib/kumogata/pre_processing.rb
248
249
  - lib/kumogata/string_stream.rb
249
250
  - lib/kumogata/utils.rb
250
251
  - lib/kumogata/version.rb
@@ -307,4 +308,3 @@ test_files:
307
308
  - spec/kumogata_validate_spec.rb
308
309
  - spec/spec_helper.rb
309
310
  - spec/string_stream_spec.rb
310
- has_rdoc: