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:
parent
a14cc3660c
commit
9d3ade7840
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue