9
10
11
12
13
14
15
16
17
18
19
|
# 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
|