-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use heredoc with credentials template #31942
Use heredoc with credentials template #31942
Conversation
r? @kaspth (@rails-bot has picked a reviewer for you, use r? to override) |
"# aws:\n# access_key_id: 123\n# secret_access_key: 345\n\n" + | ||
"# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.\n" + | ||
"secret_key_base: #{SecureRandom.hex(64)}" | ||
<<-YAML.strip_heredoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add require "active_support/core_ext/string/strip"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
encrypted
command also has the same issue. Can you fix?
rails/railties/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb
Line 18 in 52c9af6
"# aws:\n# access_key_id: 123\n# secret_access_key: 345\n\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@y-yagi Thanks for the comments. I've fixed them based on your advices.
* Use heredoc with credentials template. * Fix indentation for aws config
c74baa0
to
1469657
Compare
Thanks! |
@yhirano55 thanks! @y-yagi don't forget to backport to 5-2-stable 😊 |
…_template Use heredoc with credentials template
👍 Backported: d1e3302 |
Summary