Skip to content

Instantly share code, notes, and snippets.

@annez
Created December 10, 2015 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save annez/48a5002dc04a80ed3d16 to your computer and use it in GitHub Desktop.
Save annez/48a5002dc04a80ed3d16 to your computer and use it in GitHub Desktop.
Fix to override rake being execute out of binstub context
new_hash = {
:rake => "bundle exec bin/rake"
}
namespace :bundler do
task :map_bins do
fetch(:bundle_bins).each do |command|
SSHKit.config.command_map = SSHKit.config.command_map.defaults.merge!(new_hash)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment