From 6c37b0696dd3dd8c406b07f896f6bc0eb7738dff Mon Sep 17 00:00:00 2001 From: Rob Whittaker Date: Fri, 19 Jun 2015 17:13:45 +0100 Subject: [PATCH] Remove Foreman from Gemfile Provide documentation in project's README and in `bin/setup`. https://github.com/ddollar/foreman/pull/437#issuecomment-41110407 --- Gemfile | 4 ---- Gemfile.lock | 4 ---- bin/setup | 7 ++++--- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Gemfile b/Gemfile index 47751bfa..b18eea86 100644 --- a/Gemfile +++ b/Gemfile @@ -22,10 +22,6 @@ gem 'stripe' gem 'uglifier' gem 'unicorn' -group :development do - gem 'foreman' -end - group :development, :test do gem "byebug" gem 'dotenv-rails' diff --git a/Gemfile.lock b/Gemfile.lock index c7eb5b07..b4813cdf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,9 +92,6 @@ GEM factory_girl_rails (4.5.0) factory_girl (~> 4.5.0) railties (>= 3.0.0) - foreman (0.76.0) - dotenv (~> 1.0.2) - thor (~> 0.19.1) formulaic (0.1.2) activesupport capybara @@ -254,7 +251,6 @@ DEPENDENCIES dotenv-rails draper factory_girl_rails - foreman formulaic friendly_id geocoder diff --git a/bin/setup b/bin/setup index 2f683373..e9a412a5 100755 --- a/bin/setup +++ b/bin/setup @@ -26,9 +26,10 @@ if ! grep --quiet --no-messages --fixed-strings 'port' .foreman; then printf 'port: 9000\n' >> .foreman fi -if ! command -v foreman > /dev/null; then - printf 'Foreman is not installed.\n' - printf 'See https://github.com/ddollar/foreman for install instructions.\n' +# Print warning if Foreman is not installed +if ! command -v foreman &>/dev/null; then + echo "foreman is not installed." + echo "See https://github.com/ddollar/foreman for install instructions." fi # Only if this isn't CI