lib/command/apply_template.rb in cpl-1.0.4 vs lib/command/apply_template.rb in cpl-1.1.0

- old
+ new

@@ -81,10 +81,10 @@ [template, "#{config.app_cpln_dir}/templates/#{template}.yml"] end end def ensure_templates! - missing_templates = templates.filter { |_template, filename| !File.exist?(filename) }.to_h + missing_templates = templates.reject { |_template, filename| File.exist?(filename) }.to_h return if missing_templates.empty? missing_templates_str = missing_templates.map do |template, filename| " - #{template} (#{filename})" end.join("\n")