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

Use SSHKit command_map #128

Merged
merged 1 commit into from
Sep 14, 2015
Merged

Use SSHKit command_map #128

merged 1 commit into from
Sep 14, 2015

Conversation

hbin
Copy link
Contributor

@hbin hbin commented Sep 10, 2015

Same as seuros/capistrano-sidekiq#104

We don't need to explicitly specify the bundle exec statement(actually, we shouldn't).

The best practice is add the binaries to the bundle_bins array.

With following the best practice, the user can easily to custom the execution command, for example, I am going to use the dotenv executable to launch the puma. I can add an additive task like this:

namespace :bundler do
  task :map_bins do
    fetch(:bundle_bins).each do |command|
      SSHKit.config.command_map.prefix[command.to_sym].push('dotenv')
    end
  end
end

seuros added a commit that referenced this pull request Sep 14, 2015
@seuros seuros merged commit 2a0c2dc into seuros:master Sep 14, 2015
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.

2 participants