Skip to content
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

Merged

Conversation

yhirano55
Copy link
Contributor

Summary

  • Use heredoc with credentials template.
  • Fix indentation for aws config

@rails-bot
Copy link

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
Copy link
Member

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".

Copy link
Member

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?

"# aws:\n# access_key_id: 123\n# secret_access_key: 345\n\n"

Copy link
Contributor Author

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
@yhirano55 yhirano55 force-pushed the use_heredoc_with_credentials_template branch from c74baa0 to 1469657 Compare February 9, 2018 06:39
@y-yagi y-yagi merged commit 172c80d into rails:master Feb 9, 2018
@y-yagi
Copy link
Member

y-yagi commented Feb 9, 2018

Thanks!

@yhirano55 yhirano55 deleted the use_heredoc_with_credentials_template branch February 9, 2018 08:04
@kaspth
Copy link
Contributor

kaspth commented Feb 9, 2018

@yhirano55 thanks!

@y-yagi don't forget to backport to 5-2-stable 😊

y-yagi added a commit that referenced this pull request Feb 9, 2018
…_template

Use heredoc with credentials template
@y-yagi
Copy link
Member

y-yagi commented Feb 9, 2018

👍 Backported: d1e3302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants