Skip to content
This repository was archived by the owner on Jun 10, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
### Feature
- support for ssh keys

## 0.5.3 (2015-06-12)
### Fixed
- Add bundle command mapping check(this fixes console with RVM and other gems that map 'bundle' command)

## 0.5.2 (2015-04-02)
### Fixed
- removed rails binary check due to different environments in sshkit and the ssh shellout
Expand Down
3 changes: 2 additions & 1 deletion lib/capistrano/rails/console/tasks/remote.cap
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ namespace :rails do
rails_console_args << '--sandbox' if ENV.key?('sandbox') || ENV.key?('s')

rails_env = fetch(:rails_env, fetch(:stage, 'production'))
bundle_mapped = SSHKit.config.command_map.prefix[:bundle] rescue nil

cmd = SSHKit::Command.new(:rails, :console, rails_env, *rails_console_args, host: host)
cmd = SSHKit::Command.new(((bundle_mapped.first + ' bundle') rescue :bundle), :exec, :rails, :console, rails_env, *rails_console_args, host: host)
SSHKit.config.output << cmd

port = host.port || (host.ssh_options || {})[:port]
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/rails/console/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Rails
# Console
module Console
# gem version
VERSION = '0.5.2'
VERSION = '0.5.3'
end
end
end