From bdb960eda76d8910b17588de7048d157cfab32a1 Mon Sep 17 00:00:00 2001 From: Tiger <twatson@gitlab.com> Date: Wed, 29 Jan 2020 16:27:22 +1100 Subject: [PATCH] Allow custom Guard command --- Guardfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Guardfile b/Guardfile index 8a43f414ca9ec..21ee2a9d6104e 100644 --- a/Guardfile +++ b/Guardfile @@ -2,7 +2,7 @@ # More info at https://github.com/guard/guard#readme -cmd = ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec' +cmd = ENV['GUARD_CMD'] || (ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec') guard :rspec, cmd: cmd do require "guard/rspec/dsl" -- GitLab