class Grack::Hooks::PreUploadHook
Public Instance Methods
onBeginNegotiateRound(pack, wants, cnt_offered)
click to toggle source
# File lib/grack/hooks.rb, line 53 def onBeginNegotiateRound(pack, wants, cnt_offered); end
onEndNegotiateRound(pack, wants, cnt_common, cnt_not_found, ready )
click to toggle source
# File lib/grack/hooks.rb, line 54 def onEndNegotiateRound(pack, wants, cnt_common, cnt_not_found, ready ); end
onSendPack(pack, wants, haves)
click to toggle source
# File lib/grack/hooks.rb, line 49 def onSendPack(pack, wants, haves) @hook.call(wants.to_a.map {|obj| obj.getName}, haves.to_a.map {|obj| obj.getName}) end