method

enroll_project_in_credentials_diffing

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Diffing
enroll_project_in_credentials_diffing() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.