method
enroll_project_in_credentials_diffing
v6.1.3.1 -
Show latest stable
- Class:
Rails::Command::CredentialsCommand::Diffing
enroll_project_in_credentials_diffing()public
No documentation available.
# File railties/lib/rails/commands/credentials/credentials_command/diffing.rb, line 4
def enroll_project_in_credentials_diffing
if enrolled?
true
else
gitattributes.write(<<~end_of_template, mode: "a")
config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials
end_of_template
say "Project successfully enrolled!"
say "Rails ensures the rails_credentials diff driver is set when running `credentials:edit`. See `credentials:help` for more."
end
end