Sha256: 82e431297053b6a1e5b1cc92110ede9626e89603f9f2faadc8885eb97ba8b96f
Contents?: true
Size: 601 Bytes
Versions: 26
Compression:
Stored size: 601 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" rescue Errno::ENOENT warn <<~MSG ERROR: Please ensure `Procfile.dev` 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
26 entries across 26 versions & 2 rubygems