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

Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake #8786

Merged
merged 1 commit into from Jan 7, 2013

Conversation

jeremy
Copy link
Member

@jeremy jeremy commented Jan 6, 2013

Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'

@rafaelfranca
Copy link
Member

:shipit:

@goshacmd
Copy link
Contributor

goshacmd commented Jan 7, 2013

👍

@tenderlove
Copy link
Member

common bro

I don't see any patches in my inbox. ಠ_ಠ

test "is in a rails application if parent directory has bin/rails" do
File.stubs(:exists?).with("/foo/bar/bin/rails").returns(false)
File.stubs(:exists?).with("/foo/bin/rails").returns(true)
File.stubs(:read).with('/foo/bin/rails').returns('APP_DIR')

Choose a reason for hiding this comment

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

Shouldn't this return APP_PATH?

@carlosantoniodasilva
Copy link
Member

Nice! 👍

…n/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
jeremy added a commit that referenced this pull request Jan 7, 2013
Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake
@jeremy jeremy merged commit 41abe92 into rails:master Jan 7, 2013
@jeremy jeremy deleted the executables branch January 7, 2013 04:44
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.

None yet

8 participants