Method: Rails::Command::CredentialsCommand::Diffing#disenroll_project_from_credentials_diffing

Defined in:
railties/lib/rails/commands/credentials/credentials_command/diffing.rb

#disenroll_project_from_credentials_diffingObject



21
22
23
24
25
26
27
28
29
30
# File 'railties/lib/rails/commands/credentials/credentials_command/diffing.rb', line 21

def disenroll_project_from_credentials_diffing
  if enrolled_in_credentials_diffing?
    gitattributes.write(gitattributes.read.gsub(GITATTRIBUTES_ENTRY, ""))
    gitattributes.delete if gitattributes.empty?

    say "Disenrolled project from credentials file diffing!"
  else
    say "Project is not enrolled in credentials file diffing."
  end
end