Moved uncommitted changes message out of run_locally block
This commit is contained in:
@@ -17,13 +17,13 @@ class Mrsk::Cli::Build < Mrsk::Cli::Base
|
|||||||
verify_local_dependencies
|
verify_local_dependencies
|
||||||
run_hook "pre-build"
|
run_hook "pre-build"
|
||||||
|
|
||||||
run_locally do
|
|
||||||
begin
|
|
||||||
MRSK.with_verbosity(:debug) do
|
|
||||||
if (uncommitted_changes = Mrsk::Utils.uncommitted_changes).present?
|
if (uncommitted_changes = Mrsk::Utils.uncommitted_changes).present?
|
||||||
say "The following paths have uncommitted changes (check your .gitignore file):\n #{uncommitted_changes}", :yellow
|
say "The following paths have uncommitted changes (check your .gitignore file):\n #{uncommitted_changes}", :yellow
|
||||||
end
|
end
|
||||||
|
|
||||||
|
run_locally do
|
||||||
|
begin
|
||||||
|
MRSK.with_verbosity(:debug) do
|
||||||
execute *MRSK.builder.push
|
execute *MRSK.builder.push
|
||||||
end
|
end
|
||||||
rescue SSHKit::Command::Failed => e
|
rescue SSHKit::Command::Failed => e
|
||||||
|
|||||||
Reference in New Issue
Block a user