Methods
Public Instance methods
[ show source ]
# File lib/net/sftp/protocol/05/services.rb, line 19
19: def register_services( container )
20: container.namespace_define :v_05 do |ns|
21:
22: ns.packet_assistant do |c,|
23: require 'net/sftp/protocol/04/packet-assistant'
24: V_04::PacketAssistant.new( c[:transport][:buffers],
25: c[:driver] )
26: end
27:
28: ns.attr_factory do |c,|
29: require 'net/sftp/protocol/04/attributes'
30: V_04::Attributes.init( c[:transport][:buffers] )
31: end
32:
33: ns.impl do |c,|
34: require 'net/sftp/protocol/04/impl'
35: V_04::Impl.new( c[:transport][:buffers],
36: c[:driver], c[:packet_assistant],
37: c[:attr_factory] )
38: end
39:
40: end
41: end