1
0
Fork 0
mirror of https://gitlab.com/ydkn/capistrano-rails-console.git synced 2023-02-13 20:54:14 -05:00

remove rails 5.2 deprecation for setting environment without '-e'

This commit is contained in:
Florian Schwab 2018-02-11 10:05:55 +01:00
parent a14cc3660c
commit 9d3ade7840
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
## Unreleased
### Feature
- remove rails 5.2 deprecation: _Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead._
- allow to set capistrano role to select server for remote console (#33)
- allow to set shell used on server (#31)

View file

@ -23,7 +23,7 @@ namespace :rails do
run_interactively primary(fetch(:console_role)), shell: fetch(:console_shell) do
within current_path do
as user: fetch(:console_user) do
execute(:rails, :console, fetch(:console_env), *args)
execute(:rails, :console, '-e', fetch(:console_env), *args)
end
end
end