gogetit 0.13.6 → 0.13.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca17da35db4cf1dec8bf258b186421ee69273308
4
- data.tar.gz: bde780f333638b089791e844dfda9dab8ea68005
3
+ metadata.gz: 6dda85aa5e421897de8d583ad71cdd238628da7c
4
+ data.tar.gz: a3f6b5950092f68d97dfdaf4b80b4af21da1140e
5
5
  SHA512:
6
- metadata.gz: 6794bd865ab0b8e3b38670a6732f43033ebc0a45fcdfff1e1b13b05023f3297285086190580be8fda17edb7061941510380bf62d798aba3f998ed7887df672ce
7
- data.tar.gz: dcee1f42a11ad6d8267f357217819d5e1176742bee2224f666fb2c6b9de454c219f30018a36726e5b13424e33b34e6008e1cb5450b1ff4b8e45a4f111e5e8b2a
6
+ metadata.gz: 40e6318c1fc413d2387c5acba16946c65b62a1cb061b0a9f4c99b673ec7fe07850bfebdeaa7358f9c1a0d3199dd203d60707de85153c84137d612e034a1d2fab
7
+ data.tar.gz: 379e92b58a605b12e73ab502a37478628318fa969ad0238517752761bd8ddde532357172819294b54cd6da20b92f8aa2c3a86ef1897bec66f5d121dfa501a290
@@ -94,7 +94,7 @@ module Gogetit
94
94
  end
95
95
 
96
96
  else
97
- puts "You might need to run following command to accept the certificate"
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
@@ -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(ip_or_fqdn, user)
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
@@ -1,3 +1,3 @@
1
1
  module Gogetit
2
- VERSION = "0.13.6"
2
+ VERSION = "0.13.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gogetit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.6
4
+ version: 0.13.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Draper