norad_spec_runner 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/lib/norad_spec_runner/remote_task.rb +12 -12
- data/lib/norad_spec_runner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55e04a63541902d38d496d7f99857a06ddb258da
|
4
|
+
data.tar.gz: 9a82f686ad32f086e2a776de67f3606deeaad253
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 997a6147aa6f5c7ddb9854dc2bc5681046b3d4532a86e797fa7aef7f931825d99bdfb1e4baa9cd75ef44076c7a72fdeb25da30788efeedd5cafc48154759cfdd
|
7
|
+
data.tar.gz: 4afafd4ec72a46b1ab6fc36dff7267aa847aaa8b1a4be7c8817364cb3c419424dd7a17026655fad6df5b83a70afd8fde1aafe7b938c1aa87b04320d8c9a63136
|
@@ -110,18 +110,18 @@ module NoradSpecRunner
|
|
110
110
|
end
|
111
111
|
!@platform.nil?
|
112
112
|
end
|
113
|
-
end
|
114
113
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
114
|
+
# Check if given host/ip is reachable and we can ssh as root
|
115
|
+
# If not, then create empty log file for that host and return false.
|
116
|
+
def unable_to_ssh?
|
117
|
+
session = start_ssh_session
|
118
|
+
session.exec('ls')
|
119
|
+
session.close()
|
120
|
+
false
|
121
|
+
rescue Net::SSH::AuthenticationFailed, Net::SSH::ConnectionTimeout, Net::SSH::Timeout, Net::SSH::Exception, Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e
|
122
|
+
p e
|
123
|
+
write_error_to_results_file e.message
|
124
|
+
true
|
125
|
+
end
|
126
126
|
end
|
127
127
|
end
|