aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-03-01 20:42:54 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2017-03-01 20:44:35 +0100
commit84bc9a50d35f57135932b3ef6d9984f87d1c2229 (patch)
tree3d3e10a1fd378c4beb3646cfbaf89a7e6b159d51 /railties/lib/rails
parent82f7dc6178f86e5e2dd82f9e528475a6acee6cd8 (diff)
downloadrails-84bc9a50d35f57135932b3ef6d9984f87d1c2229.tar.gz
rails-84bc9a50d35f57135932b3ef6d9984f87d1c2229.tar.bz2
rails-84bc9a50d35f57135932b3ef6d9984f87d1c2229.zip
Put it to me straight: just say it.
Prefer Thor's say method to Kernel's plain puts.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/commands/secrets/secrets_command.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/commands/secrets/secrets_command.rb b/railties/lib/rails/commands/secrets/secrets_command.rb
index 9438eeb9f7..65db81ac73 100644
--- a/railties/lib/rails/commands/secrets/secrets_command.rb
+++ b/railties/lib/rails/commands/secrets/secrets_command.rb
@@ -32,13 +32,13 @@ module Rails
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