Sha256: 421db3fc408d657e91afd0ff1d430d8255b14019cc17586653d28580596f319f
Contents?: true
Size: 1.53 KB
Versions: 4
Compression:
Stored size: 1.53 KB
Contents
#-- # ============================================================================= # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu) # All rights reserved. # # This source file is distributed as part of the Net::SFTP Secure FTP Client # library for Ruby. This file (and the library as a whole) may be used only as # allowed by either the BSD license, or the Ruby license (or, by association # with the Ruby license, the GPL). See the "doc" subdirectory of the Net::SFTP # distribution for the texts of these licenses. # ----------------------------------------------------------------------------- # net-sftp website: http://net-ssh.rubyforge.org/sftp # project website : http://rubyforge.org/projects/net-ssh # ============================================================================= #++ module Net ; module SFTP ; module Protocol ; module V_04 def register_services( container ) container.namespace_define :v_04 do |ns| ns.packet_assistant do |c,| require 'net/sftp/protocol/04/packet-assistant' PacketAssistant.new( c[:transport][:buffers], c[:driver] ) end ns.attr_factory do |c,| require 'net/sftp/protocol/04/attributes' Attributes.init( c[:transport][:buffers] ) end ns.impl do |c,| require 'net/sftp/protocol/04/impl' Impl.new( c[:transport][:buffers], c[:driver], c[:packet_assistant], c[:attr_factory] ) end end end module_function :register_services end ; end ; end ; end
Version data entries
4 entries across 4 versions & 1 rubygems