Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
removed rails binary check due to different behaviour between sshkit …
Browse files Browse the repository at this point in the history
…and ssh shellout
  • Loading branch information
ydkn committed Apr 2, 2015
1 parent b502c77 commit d19c32f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/capistrano/rails/console/tasks/remote.cap
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,14 @@ namespace :load do
task :defaults do
# add rails to rvm_map_bins
set :rvm_map_bins, fetch(:rvm_map_bins, []).push(:rails)

# add which to map_bins
set :rvm_map_bins, fetch(:rvm_map_bins, []).push(:which)
set :rbenv_map_bins, fetch(:rbenv_map_bins, []).push(:which)

# add which to bundle_bins
set :bundle_bins, fetch(:bundle_bins, []).push(:which)
end
end

namespace :rails do
desc "Interact with a remote rails console"
task console: ['deploy:set_rails_env'] do
on primary :app do |host|
within current_path do
fail 'Rails binary not found!' unless test(:which, 'rails')
end
test(:true) # initialize ssh_options on host

ssh_cmd_options = []
rails_console_args = []
Expand Down

0 comments on commit d19c32f

Please sign in to comment.