Module: Datadog::Core::Environment::Git
- Defined in:
- lib/datadog/core/environment/git.rb
Overview
Retrieves git repository information from environment variables
Class Method Summary collapse
Class Method Details
.git_commit_sha ⇒ Object
17 18 19 20 21 |
# File 'lib/datadog/core/environment/git.rb', line 17 def self.git_commit_sha return @git_commit_sha if defined?(@git_commit_sha) @git_commit_sha = ENV[Datadog::Core::Git::Ext::ENV_COMMIT_SHA] end |
.git_repository_url ⇒ Object
11 12 13 14 15 |
# File 'lib/datadog/core/environment/git.rb', line 11 def self.git_repository_url return @git_repository_url if defined?(@git_repository_url) @git_repository_url = Utils::Url.filter_basic_auth(ENV[Datadog::Core::Git::Ext::ENV_REPOSITORY_URL]) end |