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
|
||||
run_hook "pre-build"
|
||||
|
||||
if (uncommitted_changes = Mrsk::Utils.uncommitted_changes).present?
|
||||
say "The following paths have uncommitted changes (check your .gitignore file):\n #{uncommitted_changes}", :yellow
|
||||
end
|
||||
|
||||
run_locally do
|
||||
begin
|
||||
MRSK.with_verbosity(:debug) do
|
||||
if (uncommitted_changes = Mrsk::Utils.uncommitted_changes).present?
|
||||
say "The following paths have uncommitted changes (check your .gitignore file):\n #{uncommitted_changes}", :yellow
|
||||
end
|
||||
|
||||
execute *MRSK.builder.push
|
||||
end
|
||||
rescue SSHKit::Command::Failed => e
|
||||
|
||||
Reference in New Issue
Block a user