gogetit 0.13.6 → 0.13.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gogetit/config.rb +1 -2
- data/lib/gogetit/util.rb +7 -2
- data/lib/gogetit/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: 6dda85aa5e421897de8d583ad71cdd238628da7c
|
4
|
+
data.tar.gz: a3f6b5950092f68d97dfdaf4b80b4af21da1140e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e6318c1fc413d2387c5acba16946c65b62a1cb061b0a9f4c99b673ec7fe07850bfebdeaa7358f9c1a0d3199dd203d60707de85153c84137d612e034a1d2fab
|
7
|
+
data.tar.gz: 379e92b58a605b12e73ab502a37478628318fa969ad0238517752761bd8ddde532357172819294b54cd6da20b92f8aa2c3a86ef1897bec66f5d121dfa501a290
|
data/lib/gogetit/config.rb
CHANGED
@@ -94,7 +94,7 @@ module Gogetit
|
|
94
94
|
end
|
95
95
|
|
96
96
|
else
|
97
|
-
puts "You might need to run following
|
97
|
+
puts "You might need to run following commands to accept the certificate"
|
98
98
|
config[:lxd][:nodes].each do |node|
|
99
99
|
puts "lxc remote add --accept-certificate #{node[:name]}"\
|
100
100
|
" #{node[:url]}"
|
@@ -113,7 +113,6 @@ module Gogetit
|
|
113
113
|
" your workstation."
|
114
114
|
puts "scp -r ~/.ssh ubuntu@#{`hostname -f`.chop!}:~/"
|
115
115
|
abort("Unable to make connection with #{node[:url]}.")
|
116
|
-
require 'pry'; binding.pry
|
117
116
|
end
|
118
117
|
end
|
119
118
|
end
|
data/lib/gogetit/util.rb
CHANGED
@@ -194,10 +194,15 @@ module Gogetit
|
|
194
194
|
def ssh_available?(ip_or_fqdn, user)
|
195
195
|
logger.info("Calling <#{__method__.to_s}> for #{user}@#{ip_or_fqdn}")
|
196
196
|
begin
|
197
|
-
Net::SSH.start(
|
197
|
+
Net::SSH.start(
|
198
|
+
ip_or_fqdn,
|
199
|
+
user,
|
200
|
+
:keys_only => true,
|
201
|
+
:number_of_password_prompts => 0
|
202
|
+
)
|
198
203
|
rescue Exception => e
|
199
204
|
puts e
|
200
|
-
false
|
205
|
+
return false
|
201
206
|
end
|
202
207
|
true
|
203
208
|
end
|
data/lib/gogetit/version.rb
CHANGED