Skip to content

Commit

Permalink
Put it to me straight: just say it.
Browse files Browse the repository at this point in the history
Prefer Thor's say method to Kernel's plain puts.
  • Loading branch information
kaspth committed Mar 1, 2017
1 parent 82f7dc6 commit 84bc9a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/lib/rails/commands/secrets/secrets_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def edit
require_application_and_environment!

Rails::Secrets.read_for_editing do |tmp_path|
puts "Waiting for secrets file to be saved. Abort with Ctrl-C."
say "Waiting for secrets file to be saved. Abort with Ctrl-C."
system("\$EDITOR #{tmp_path}")
end

puts "New secrets encrypted and saved."
say "New secrets encrypted and saved."
rescue Interrupt
puts "Aborted changing encrypted secrets: nothing saved."
say "Aborted changing encrypted secrets: nothing saved."
rescue Rails::Secrets::MissingKeyError => error
say error.message
end
Expand Down

0 comments on commit 84bc9a5

Please sign in to comment.