lib/ufo/docker/builder.rb in ufo-4.1.10 vs lib/ufo/docker/builder.rb in ufo-4.2.0

- old
+ new

@@ -24,26 +24,26 @@ store_full_image_name update_auth_token command = "docker build #{build_options}-t #{full_image_name} -f #{@dockerfile} ." - say "Building docker image with:".green - say " #{command}".green + say "Building docker image with:".color(:green) + say " #{command}".color(:green) check_dockerfile_exists command = "cd #{Ufo.root} && #{command}" success = execute(command, use_system: true) unless success docker_version_success = system("docker version > /dev/null 2>&1") unless docker_version_success docker_version_message = " Are you sure the docker daemon is available? Try running: docker version." end - puts "ERROR: The docker image fail to build.#{docker_version_message}".colorize(:red) + puts "ERROR: The docker image fail to build.#{docker_version_message}".color(:red) exit 1 end took = Time.now - start_time say "Docker image #{full_image_name} built. " - say "Docker build took #{pretty_time(took)}.".green + say "Docker build took #{pretty_time(took)}.".color(:green) end def build_options options = ENV['UFO_DOCKER_BUILD_OPTIONS'] options += " " if options