method

enroll_project_in_credentials_diffing

Importance_0
v6.1.7.7 - 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 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
Register or log in to add new notes.