Class: GHRH::Command::Test

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/ghrh/command/test.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
# File 'lib/ghrh/command/test.rb', line 7

def execute
  raise "No repo specified (-r) or set (github.repo)" if not repo

  resp = GHRH::Client.post("/repos/#{repo}/hooks/#{id}/tests")
  puts "#{resp.code} #{resp.message}"
  pp resp
end