lib/percheron/actions/recreate.rb in percheron-0.6.3 vs lib/percheron/actions/recreate.rb in percheron-0.6.4

- old
+ new

@@ -9,19 +9,20 @@ @force_recreate = force_recreate @delete = delete end def execute! + results = [] if recreate? - recreate! - container + results << recreate! else unless dockerfile_md5s_match? $logger.warn "Container '#{container.name}' MD5's do not match, consider recreating (bump the version!)" else $logger.info "Container '#{container.name}' does not need to be recreated" end end + results.compact.empty? ? nil : container end private attr_reader :container, :force_recreate, :delete