prof 0.31.14 → 0.31.15
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.
- checksums.yaml +4 -4
- data/lib/prof/ssh_gateway.rb +16 -6
- data/lib/prof/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fcd3ce59591ab76c2445be70ae62aba27b311fc
|
|
4
|
+
data.tar.gz: 0cc46b0113ef9e25e9a89edc6eeca4940ce90ab4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a136e62cb0558de9f09ab09a95a9ccca64a799dbd2bcbe6b595a7bb6e78bc66a01b9d4b9843adc0ae3f649833ad6eb5c1643dcc65a735a3b6d819f17d68882fe
|
|
7
|
+
data.tar.gz: 8e6fc98d4973cf7a6609a729a505c78f15b4cf79dc606d95535024459460695e72f9e3b8c8bfe8dce143e19e9bc2f9bae5264b4ec4b4f0336cd1eb998c30063f
|
data/lib/prof/ssh_gateway.rb
CHANGED
|
@@ -43,12 +43,14 @@ module Prof
|
|
|
43
43
|
ssh_gateway_options[:auth_methods] = [ 'password', 'publickey' ]
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ssh
|
|
46
|
+
suppress_warnings do
|
|
47
|
+
ssh_gateway.ssh(
|
|
48
|
+
host,
|
|
49
|
+
user,
|
|
50
|
+
ssh_gateway_options,
|
|
51
|
+
) do |ssh|
|
|
52
|
+
ssh.exec!(cmd)
|
|
53
|
+
end
|
|
52
54
|
end
|
|
53
55
|
end
|
|
54
56
|
|
|
@@ -104,5 +106,13 @@ module Prof
|
|
|
104
106
|
].join(' ')
|
|
105
107
|
raise Net::SSH::AuthenticationFailed, message
|
|
106
108
|
end
|
|
109
|
+
|
|
110
|
+
def suppress_warnings
|
|
111
|
+
original_verbosity = $VERBOSE
|
|
112
|
+
$VERBOSE = nil
|
|
113
|
+
result = yield
|
|
114
|
+
$VERBOSE = original_verbosity
|
|
115
|
+
return result
|
|
116
|
+
end
|
|
107
117
|
end
|
|
108
118
|
end
|
data/lib/prof/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prof
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.31.
|
|
4
|
+
version: 0.31.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CF London
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gem-release
|