7 8 9 10 11 12 13
# File 'lib/ghrh/command/delete.rb', line 7 def execute raise "No repo specified (-r) or set (github.repo)" if not repo resp = GHRH::Client.delete("/repos/#{repo}/hooks/#{id}") puts "#{resp.code} #{resp.message}" puts resp.body puts "Deleted" if resp.code == 204 end