Class: RoboPigeon::Dsl::GitLabRoot

Inherits:
Base
  • Object
show all
Defined in:
lib/robopigeon/gitlab/dsl.rb

Direct Known Subclasses

GitLab

Instance Method Summary collapse

Methods inherited from Base

#method_missing, #respond_to_missing?

Methods inherited from Job

#gitlab, #jenkins, #jira, run, #slack

Methods included from Helpers

#skip

Methods included from Helpers::Markdown

#confluence_from_md, #html_from_md, #jira_from_md, #slack_from_md

Methods included from Helpers::GitLab

#deployment_code_change_stats, #deployment_diff_link, #deployment_ref, #deployment_sha, #deployment_shortlog, #deployment_time, #environment_link, #tickets_in_log_since_deployment_to

Methods included from Helpers::Slack

#slack_name_for, #slack_user_for, #slack_user_group

Methods included from Helpers::Jira

#jira_last_created_ticket, #jira_last_created_ticket_link, #jira_last_created_ticket_slack_link, #jira_slack_link

Methods included from Helpers::Git

#changed_since?, #git_branch_merged_source, #git_branch_merged_target, #git_committer_email, #git_committer_name, #git_merger_email, #git_merger_name

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RoboPigeon::Dsl::Base

Instance Method Details

#api_key(key) ⇒ Object



24
25
26
# File 'lib/robopigeon/gitlab/dsl.rb', line 24

def api_key(key)
  Gitlab.private_token = key
end

#api_url(url) ⇒ Object



36
37
38
# File 'lib/robopigeon/gitlab/dsl.rb', line 36

def api_url(url)
  Gitlab.endpoint = url
end

#branch(branch) ⇒ Object



72
73
74
# File 'lib/robopigeon/gitlab/dsl.rb', line 72

def branch(branch)
  RoboPigeon::GitLab::Client.branch = branch
end

#enabled(bool) ⇒ Object



12
13
14
# File 'lib/robopigeon/gitlab/dsl.rb', line 12

def enabled(bool)
  RoboPigeon::GitLab::Client.enabled = bool
end

#pipeline_id(pipeline_id) ⇒ Object



60
61
62
# File 'lib/robopigeon/gitlab/dsl.rb', line 60

def pipeline_id(pipeline_id)
  RoboPigeon::GitLab::Client.pipeline_id = pipeline_id
end

#project(project_path) ⇒ Object



48
49
50
# File 'lib/robopigeon/gitlab/dsl.rb', line 48

def project(project_path)
  RoboPigeon::GitLab::Client.project = project_path
end