class Grack::Hooks::PreReceiveHook
Public Instance Methods
onPreReceive(pack, commands)
click to toggle source
# File lib/grack/hooks.rb, line 12 def onPreReceive(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, } }) end