class Grack::Hooks::PostReceiveHook
Public Instance Methods
onPostReceive(pack, commands)
click to toggle source
# File lib/grack/hooks.rb, line 26 def onPostReceive(pack, commands) @hook.call(commands.to_a.map {|cmd| { :ref_name => cmd.getRefName, :old_id => cmd.getOldId.getName, :new_id => cmd.getNewId.getName, :type => cmd.getType.toString, :result => cmd.getResult.toString } }) end