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

Version Path
react_on_rails-15.0.0.alpha.2 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.2.0 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.1.1 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.1.0 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.1.0.rc.0 lib/generators/react_on_rails/bin/dev-static
react_on_rails-15.0.0.alpha.1 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.0.5 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.0.4 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.0.3 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.0.2 lib/generators/react_on_rails/bin/dev-static
react_on_rails-14.0.0 lib/generators/react_on_rails/bin/dev-static
shakapacker-7.2.3 spec/dummy/bin/dev-static
shakapacker-7.3.0.beta.1 spec/dummy/bin/dev-static
shakapacker-7.2.2 spec/dummy/bin/dev-static
shakapacker-7.2.1 spec/dummy/bin/dev-static
shakapacker-7.2.0 spec/dummy/bin/dev-static
shakapacker-7.2.0.rc.0 spec/dummy/bin/dev-static
shakapacker-7.1.0 spec/dummy/bin/dev-static
shakapacker-7.0.3 spec/dummy/bin/dev-static
react_on_rails-13.4.0 lib/generators/react_on_rails/bin/dev-static