Class: RoboPigeon::Dsl::JenkinsRoot

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

Direct Known Subclasses

Jenkins

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#method_missing, #respond_to_missing?

Methods inherited from Job

#gitlab, #jenkins, #jira, #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

Class Method Details

.run(&block) ⇒ Object



3
4
5
6
# File 'lib/robopigeon/jenkins/dsl.rb', line 3

def self.run(&block)
  instance = new
  instance.instance_eval(&block)
end

Instance Method Details

#api_key(token) ⇒ Object



52
53
54
# File 'lib/robopigeon/jenkins/dsl.rb', line 52

def api_key(token)
  RoboPigeon::Jenkins::Client.token = token
end

#api_url(url) ⇒ Object



28
29
30
# File 'lib/robopigeon/jenkins/dsl.rb', line 28

def api_url(url)
  RoboPigeon::Jenkins::Client.url = url
end

#api_user(user) ⇒ Object



40
41
42
# File 'lib/robopigeon/jenkins/dsl.rb', line 40

def api_user(user)
  RoboPigeon::Jenkins::Client.user = user
end

#enabled(bool) ⇒ Object



16
17
18
# File 'lib/robopigeon/jenkins/dsl.rb', line 16

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