Class: Gitlab::Triage::Action::Delete::Dry

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

Instance Attribute Summary

Attributes inherited from Base

#network, #policy

Instance Method Summary collapse

Methods inherited from Gitlab::Triage::Action::Delete

#build_delete_url, #resource_id

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
# File 'lib/gitlab/triage/action/delete.rb', line 10

def act
  puts "The following resources will be deleted by the rule **#{policy.name}**:\n\n"
  super
end

#perform(resource) ⇒ Object (private)



17
18
19
# File 'lib/gitlab/triage/action/delete.rb', line 17

def perform(resource)
  puts "DELETE resource with type: #{resource[:type]} and id: #{resource_id(resource)}"
end