lib/datadog/ci/ext/environment/providers/gitlab.rb in datadog-ci-0.2.0 vs lib/datadog/ci/ext/environment/providers/gitlab.rb in datadog-ci-0.3.0

- old
+ new

@@ -8,9 +8,13 @@ module Environment module Providers # Gitlab CI: https://docs.gitlab.com/ee/ci/ # Environment variables docs: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html class Gitlab < Base + def self.handles?(env) + env.key?("GITLAB_CI") + end + def provider_name "gitlab" end def job_name