cluster/lib/cluster/runner.rb in sct-1.7.0 vs cluster/lib/cluster/runner.rb in sct-1.8.0
- old
+ new
@@ -1,8 +1,8 @@
module Cluster
class Runner
- @@dc = system("which docker-compose") ? 'docker-compose' : 'docker compose'
+ @@dc = system("docker compose version", out: "/dev/null", err: "/dev/null") ? "docker compose" : "docker-compose"
def run command, options = {}
begin
if !system command, options
raise command.red