method
enroll_project_in_credentials_diffing
v7.1.3.2 -
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 9
def enroll_project_in_credentials_diffing
if enrolled_in_credentials_diffing?
say "Project is already enrolled in credentials file diffing."
else
gitattributes.write(GITATTRIBUTES_ENTRY, mode: "a")
say "Enrolled project in credentials file diffing!"
say ""
say "Rails will configure the Git diff driver for credentials when running `#{executable(:edit)}`. See `#{executable(:help)}` for more information."
end
end