method
render_template_to_encrypted_file
v7.2.3 -
Show latest stable
- Class:
Rails::Generators::CredentialsGenerator
render_template_to_encrypted_file()private
No documentation available.
# File railties/lib/rails/generators/rails/credentials/credentials_generator.rb, line 46
def render_template_to_encrypted_file
empty_directory File.dirname(content_path)
content = nil
encrypted_file.change do |tmp_path|
template("credentials.yml", tmp_path, force: true, verbose: false) do |rendered|
content = rendered
end
end
content
end