Class: Gitlab::Triage::Action::Issue::Dry

Inherits:
Gitlab::Triage::Action::Issue show all
Defined in:
lib/gitlab/triage/action/issue.rb

Instance Attribute Summary

Attributes inherited from Base

#network, #policy

Instance Method Summary collapse

Methods inherited from Gitlab::Triage::Action::Issue

#build_post_url, #post_issue_body

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Triage::Action::Base

Instance Method Details

#actObject



10
11
12
13
14
# File 'lib/gitlab/triage/action/issue.rb', line 10

def act
  puts "The following issues would be created for the rule **#{policy.name}**:\n\n"

  super
end

#perform(resource, issue) ⇒ Object (private)



18
19
20
21
22
23
24
# File 'lib/gitlab/triage/action/issue.rb', line 18

def perform(resource, issue)
  puts ">>>"
  puts "* Project: #{issue.destination || resource[policy.source_id_sym]}"
  puts "* Title: #{issue.title}"
  puts "* Description: #{issue.description}"
  puts ">>>"
end