Class: GHRH::Command::Get

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

Instance Method Summary collapse

Instance Method Details

#executeObject



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

def execute
  raise "No repo specified (-r) or set (github.repo)" if not repo
  resp = GHRH::Client.get("/repos/#{repo}/hooks/#{id}")
  puts "#{resp.code} #{resp.message}"
  pp resp
end