mofa 0.3.19 → 0.3.20

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop.yml ADDED
@@ -0,0 +1,5 @@
1
+ Metrics/LineLength:
2
+ Enabled: false
3
+
4
+ Style/Encoding:
5
+ Enabled: false
@@ -143,11 +143,13 @@ class ProvisionCmd < MofaCmd
143
143
  host_index = host_index + 1
144
144
  chef_solo_runs.store(hostname, {})
145
145
 
146
- if options[:ignore_ping] == false && host_avail?(hostname) == false
147
- chef_solo_runs[hostname].store('status', 'UNAVAIL')
148
- chef_solo_runs[hostname].store('status_msg', "Host #{hostname} unreachable.")
149
- at_least_one_chef_solo_run_failed = true
150
- next
146
+ unless (options.key?('ignore_ping') && options[:ignore_ping] == true)
147
+ unless host_avail?(hostname)
148
+ chef_solo_runs[hostname].store('status', 'UNAVAIL')
149
+ chef_solo_runs[hostname].store('status_msg', "Host #{hostname} unreachable.")
150
+ at_least_one_chef_solo_run_failed = true
151
+ next
152
+ end
151
153
  end
152
154
 
153
155
  prepare_host(hostname, host_index, solo_dir)
data/lib/mofa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.19"
2
+ VERSION = "0.3.20"
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.19
4
+ version: 0.3.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -212,6 +212,7 @@ extensions: []
212
212
  extra_rdoc_files: []
213
213
  files:
214
214
  - .gitignore
215
+ - .rubocop.yml
215
216
  - .travis.yml
216
217
  - Gemfile
217
218
  - Guardfile