Only catch what we can carry
This commit is contained in:
@@ -15,9 +15,13 @@ class Mrsk::Cli::Build < Mrsk::Cli::Base
|
|||||||
begin
|
begin
|
||||||
MRSK.verbosity(:debug) { execute *MRSK.builder.push }
|
MRSK.verbosity(:debug) { execute *MRSK.builder.push }
|
||||||
rescue SSHKit::Command::Failed => e
|
rescue SSHKit::Command::Failed => e
|
||||||
|
if e.message =~ /no such file or directory/
|
||||||
error "Missing compatible builder, so creating a new one first"
|
error "Missing compatible builder, so creating a new one first"
|
||||||
execute *MRSK.builder.create
|
execute *MRSK.builder.create
|
||||||
MRSK.verbosity(:debug) { execute *MRSK.builder.push }
|
MRSK.verbosity(:debug) { execute *MRSK.builder.push }
|
||||||
|
else
|
||||||
|
raise
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user