Class: RoboPigeon::Dsl::Job

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/robopigeon/jira.rb,
lib/robopigeon/slack.rb,
lib/robopigeon/gitlab.rb,
lib/robopigeon/dsl/job.rb,
lib/robopigeon/jenkins.rb

Direct Known Subclasses

Base

Class Method Summary collapse

Instance Method Summary collapse

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

Class Method Details

.run(&block) ⇒ Object



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

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

Instance Method Details

#gitlab(&block) ⇒ Object



27
28
29
# File 'lib/robopigeon/gitlab.rb', line 27

def gitlab(&block)
  RoboPigeon::Dsl::GitLab.run(&block)
end

#jenkins(&block) ⇒ Object



18
19
20
# File 'lib/robopigeon/jenkins.rb', line 18

def jenkins(&block)
  RoboPigeon::Dsl::Jenkins.run(&block)
end

#jira(&block) ⇒ Object



33
34
35
# File 'lib/robopigeon/jira.rb', line 33

def jira(&block)
  RoboPigeon::Dsl::Jira.run(&block)
end

#slack(&block) ⇒ Object



26
27
28
# File 'lib/robopigeon/slack.rb', line 26

def slack(&block)
  RoboPigeon::Dsl::Slack.run(&block)
end