Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install foreman as part of bin/setup #169

Merged
merged 1 commit into from
Sep 5, 2017
Merged

Install foreman as part of bin/setup #169

merged 1 commit into from
Sep 5, 2017

Conversation

adarsh
Copy link
Contributor

@adarsh adarsh commented Sep 5, 2017

Reason for Change

  • It is required for local development but NOT in the Gemfile.
  • This could be confusing.
  • Why not just set it up in bin/setup?

Changes

  • Add a step to install the foreman gem.

Reason for Change
=================
* It is required for local development but NOT in the Gemfile.
* This could be confusing.
* Why not just set it up in `bin/setup`?

Changes
=======
* Add a step to install the `foreman` gem.
@adarsh
Copy link
Contributor Author

adarsh commented Sep 5, 2017

Copy link
Contributor

@jessieay jessieay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🌮

system("bundle check") || system!("bundle install")
end

step "Installing foreman for controlling local servers" do
system!("gem install foreman")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we check if foreman is already installed before doing this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the down-side to placing it in the Gemfile explicitly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tend to lean in the direction of "Things that live completely outside the application should not be in the Gemfile" (Say, rerun or mailcatcher) but have no strong preferences here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we check if foreman is already installed before doing this?

I thought of this, but if we call gem install and it is installed, bundler will just upgrade it. So I'm inclined to leave it, unless you feel like that is an unpleasant surprise.

@jayroh
Copy link
Contributor

jayroh commented Sep 5, 2017 via email

@adarsh adarsh merged commit 771cf59 into master Sep 5, 2017
@adarsh adarsh deleted the ap-install-foreman branch September 5, 2017 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants