lib/hu/deploy.rb in hu-1.4.1 vs lib/hu/deploy.rb in hu-1.4.2

- old
+ new

@@ -439,10 +439,16 @@ puts puts table.render(:unicode, padding: [0, 1, 0, 1], multiline: true) missing_env = app_config[stag_app_name].keys - app_config[prod_app_name].keys + env_ignore = begin + File.read(File.join('.hu', 'env_ignore'))&.lines.map(&:chomp) + rescue + nil + end + missing_env -= env_ignore if missing_env && env_ignore unless missing_env.empty? puts missing_env.each do |var| puts ' WARNING '.color(:red).bright.inverse + ' Missing config in ' + prod_app_name.bright + ": #{var}" sleep 0.42 @@ -590,13 +596,16 @@ exit status.exitstatus end versions = output.lines.map(&:chomp).reject do |e| begin + # yes, this is really how rubocop + # wants to format this... *shrug* Versionomy.parse(e) + false rescue true - end; false + end end versions = versions.map { |e| e[0].casecmp('v').zero? ? e.downcase : "v#{e.downcase}" } versions = VersionSorter.sort(versions) latest = versions[-1] || 'v0.0.0' latest = "v#{latest}" unless latest[0] == 'v'