Module: Dishwasher::DeleteForks

Extended by:
MessageFormatter
Defined in:
lib/dishwasher/delete_forks.rb

Class Method Summary collapse

Methods included from MessageFormatter

abort_message, body_message, title_message

Class Method Details

.confirmation_messagestring

Confirmation message that the repos were removed

Returns:

  • (string)

    forks deleted message



23
24
25
# File 'lib/dishwasher/delete_forks.rb', line 23

def confirmation_message
  title_message("Forks Deleted")
end

.delete(selections) ⇒ string

Loop to delete the selected forked repos

Returns:

  • (string)

    confirmation_message



10
11
12
13
14
15
16
# File 'lib/dishwasher/delete_forks.rb', line 10

def delete(selections)
  title_message("Deleting Forks")
  selections.each do |s|
    Dishwasher::Github.delete_repo(s)
  end
  confirmation_message
end