Always be verbose about building

Serves as progress indicator, step too long without one
This commit is contained in:
David Heinemeier Hansson
2023-01-22 10:45:05 +01:00
parent e4dc4c300e
commit e783950825

View File

@@ -13,13 +13,11 @@ class Mrsk::Cli::Build < Mrsk::Cli::Base
run_locally do
begin
debug "Using builder: #{MRSK.builder.name}"
info "Building image may take a while (run with --verbose for progress logging)" unless verbose
execute *MRSK.builder.push
MRSK.verbosity(:debug) { execute *MRSK.builder.push }
rescue SSHKit::Command::Failed => e
error "Missing compatible builder, so creating a new one first"
execute *MRSK.builder.create
execute *MRSK.builder.push
MRSK.verbosity(:debug) { execute *MRSK.builder.push }
end
end
end