Sha256: ef506b3fa0741df9d887d0d298eef0f4b778b32e13a8be95824d069dcce9dff0
Contents?: true
Size: 615 Bytes
Versions: 28
Compression:
Stored size: 615 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true def installed?(process) IO.popen "#{process} -v" rescue Errno::ENOENT false end def run(process) system "#{process} start -f Procfile.dev-static" rescue Errno::ENOENT warn <<~MSG ERROR: Please ensure `Procfile.dev-static` exists in your project! MSG exit! end if installed? "overmind" run "overmind" elsif installed? "foreman" run "foreman" else warn <<~MSG NOTICE: For this script to run, you need either 'overmind' or 'foreman' installed on your machine. Please try this script after installing one of them. MSG exit! end
Version data entries
28 entries across 28 versions & 2 rubygems