From d92a91a61cdfe2bdf226988fd8755c54b498d832 Mon Sep 17 00:00:00 2001 From: Kristian Kostecky Date: Thu, 8 Oct 2015 15:26:25 -0400 Subject: [PATCH 1/2] Add documentation for prefixing chruby to custom binaries --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 0441318..4d2cdc2 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,13 @@ And then execute: If your `chruby-exec` is located in some custom path, you can tweak `chruby_exec` option to set it. +Capistrano::chruby sets `:chruby_map_bins` to prefix `rake`, `gem`, `bundle`, `ruby` if you'd like +to add custom executables to be prefixed with a `chruby exec` you can add them to the list. + + ``` + set :chruby_map_bins, fetch(:chruby_map_bins, []).push('my_new_binary') + ``` + ## Contributing 1. Fork it From d39adbf7ea256d72cec11d779e93399474ceed25 Mon Sep 17 00:00:00 2001 From: Kristian Kostecky Date: Thu, 8 Oct 2015 15:27:46 -0400 Subject: [PATCH 2/2] Correct grammar --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d2cdc2..96bba42 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ And then execute: If your `chruby-exec` is located in some custom path, you can tweak `chruby_exec` option to set it. -Capistrano::chruby sets `:chruby_map_bins` to prefix `rake`, `gem`, `bundle`, `ruby` if you'd like +Capistrano::chruby sets `:chruby_map_bins` to prefix `rake`, `gem`, `bundle`, `ruby`. If you'd like to add custom executables to be prefixed with a `chruby exec` you can add them to the list. ```