Skip to content

Commit

Permalink
shrc: handle differing Rails credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Aug 25, 2023
1 parent f7e4685 commit 2ea1036
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions shrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ if quiet_which code; then
}

# Edit Rails credentials in VSCode
rails-credentials-edit() {
EDITOR="code -w" bundle exec rails credentials:edit
rails-credentials-edit-production() {
EDITOR="code -w" bundle exec rails credentials:edit --environment production
}
rails-credentials-edit-development() {
EDITOR="code -w" bundle exec rails credentials:edit --environment development
}
else
export EDITOR="vim"
Expand Down

0 comments on commit 2ea1036

Please sign in to comment.