cluster/lib/cluster/runner.rb in sct-1.3.0 vs cluster/lib/cluster/runner.rb in sct-1.4.0
- old
+ new
@@ -9,14 +9,19 @@
rescue Interrupt
# user pressed Ctrl+C, do nothing
end
end
+ def dc_system
+ return executer = system("which docker-compose") ? 'docker-compose' : 'docker compose'
+ end
+
def run_dc command, options = {}
- run "docker-compose -f ~/development/spend-cloud/docker-compose.yml #{command}", options
+ run "#{dc_system} -f ~/development/spend-cloud/docker-compose.yml #{command}", options
end
def start args, options
+ print "DC_SYSTEM: #{dc_system}"
if options.pull
run_dc "pull"
end
if options.build