Class: Datadog::CI::Ext::Environment::Providers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ci/ext/environment/providers/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Base

Returns a new instance of Base.



15
16
17
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 15

def initialize(env)
  @env = env
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



9
10
11
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 9

def env
  @env
end

Class Method Details

.handles?(_env) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 11

def self.handles?(_env)
  false
end

Instance Method Details

#additional_tagsObject



99
100
101
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 99

def additional_tags
  {}
end

#ci_env_varsObject



52
53
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 52

def ci_env_vars
end

#git_branchObject



55
56
57
58
59
60
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 55

def git_branch
  return @branch if defined?(@branch)

  set_branch_and_tag
  @branch
end

#git_branch_or_tagObject



72
73
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 72

def git_branch_or_tag
end

#git_commit_author_dateObject



75
76
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 75

def git_commit_author_date
end

#git_commit_author_emailObject



78
79
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 78

def git_commit_author_email
end

#git_commit_author_nameObject



81
82
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 81

def git_commit_author_name
end

#git_commit_committer_dateObject



84
85
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 84

def git_commit_committer_date
end

#git_commit_committer_emailObject



87
88
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 87

def git_commit_committer_email
end

#git_commit_committer_nameObject



90
91
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 90

def git_commit_committer_name
end

#git_commit_messageObject



93
94
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 93

def git_commit_message
end

#git_commit_shaObject



96
97
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 96

def git_commit_sha
end

#git_repository_urlObject



62
63
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 62

def git_repository_url
end

#git_tagObject



65
66
67
68
69
70
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 65

def git_tag
  return @tag if defined?(@tag)

  set_branch_and_tag
  @tag
end

#job_nameObject



19
20
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 19

def job_name
end

#job_urlObject



22
23
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 22

def job_url
end

#node_labelsObject



46
47
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 46

def node_labels
end

#node_nameObject



49
50
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 49

def node_name
end

#pipeline_idObject



25
26
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 25

def pipeline_id
end

#pipeline_nameObject



28
29
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 28

def pipeline_name
end

#pipeline_numberObject



31
32
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 31

def pipeline_number
end

#pipeline_urlObject



34
35
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 34

def pipeline_url
end

#provider_nameObject



37
38
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 37

def provider_name
end

#stage_nameObject



40
41
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 40

def stage_name
end

#workspace_pathObject



43
44
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 43

def workspace_path
end