mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Put it to me straight: just say it.
Prefer Thor's say method to Kernel's plain puts.
This commit is contained in:
parent
82f7dc6178
commit
84bc9a50d3
1 changed files with 3 additions and 3 deletions
|
@ -32,13 +32,13 @@ module Rails
|
||||||
require_application_and_environment!
|
require_application_and_environment!
|
||||||
|
|
||||||
Rails::Secrets.read_for_editing do |tmp_path|
|
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}")
|
system("\$EDITOR #{tmp_path}")
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "New secrets encrypted and saved."
|
say "New secrets encrypted and saved."
|
||||||
rescue Interrupt
|
rescue Interrupt
|
||||||
puts "Aborted changing encrypted secrets: nothing saved."
|
say "Aborted changing encrypted secrets: nothing saved."
|
||||||
rescue Rails::Secrets::MissingKeyError => error
|
rescue Rails::Secrets::MissingKeyError => error
|
||||||
say error.message
|
say error.message
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue