class Honeybadger::Agent

def track_deployment(environment: nil, revision: nil, local_username: nil, repository: nil)

Returns:
  • (Boolean) - true if the deployment was successfully tracked and false

Parameters:
  • :repository (String) -- The base URL of the VCS repository. It should be HTTPS-style.
  • :local_username (String) -- The name of the user who performed the deploy.
  • :revision (String) -- The VCS revision being deployed. Defaults to the currently configured revision.
  • :environment (String) -- The environment name. Defaults to the current configured environment.
def track_deployment(environment: nil, revision: nil, local_username: nil, repository: nil)
  opts = {
    environment: environment || config[:env],
    revision: revision || config[:revision],
    local_username: local_username,
    repository: repository
  }
  response = backend.track_deployment(opts)
  response.success?
end