mofa 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,8 +53,6 @@ class ProvisionCmd < MofaCmd
53
53
  exit_status = system("ping -q -c 1 #{hostname} >/dev/null 2>&1")
54
54
  unless exit_status then
55
55
  puts " --> Host #{hostname} is unavailable!"
56
- chef_solo_runs[hostname].store('status', 'UNAVAIL')
57
- chef_solo_runs[hostname].store('status_msg', "Host #{hostname} unreachable.")
58
56
  else
59
57
  puts " --> Host #{hostname} is available."
60
58
  prerequesits_met = true
@@ -140,8 +138,12 @@ class ProvisionCmd < MofaCmd
140
138
  host_index = 0
141
139
  hostlist.list.each do |hostname|
142
140
  host_index = host_index + 1
143
- next unless prepare_host(hostname, host_index, solo_dir)
144
141
  chef_solo_runs.store(hostname, {})
142
+ unless prepare_host(hostname, host_index, solo_dir)
143
+ chef_solo_runs[hostname].store('status', 'UNAVAIL')
144
+ chef_solo_runs[hostname].store('status_msg', "Host #{hostname} unreachable.")
145
+ next
146
+ end
145
147
 
146
148
  Net::SFTP.start(hostname, Mofa::Config.config['ssh_user'], :keys => [Mofa::Config.config['ssh_keyfile']], :port => Mofa::Config.config['ssh_port'], :verbose => :error) do |sftp|
147
149
 
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.13"
2
+ VERSION = "0.3.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-05 00:00:00.000000000 Z
12
+ date: 2016-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec