Sha256: fed52ab7bc966c71e68f4f0a65c797acd0e637a98b4e891f44a7a4f4777cdb91

Contents?: true

Size: 1.16 KB

Versions: 14

Compression:

Stored size: 1.16 KB

Contents

module RubySMB
  class Server
    module Share
      module Provider
        # The share provider defines the share and its attributes such as its
        # type and name. It is shared across all client connections and
        # sessions.
        class Base
          # @param [String] name The name of this share.
          def initialize(name)
            @name = name
          end

          # Create a new, session-specific processor instance for this share.
          #
          # @param [RubySMB::Server::ServerClient] server_client The client connection.
          # @param [RubySMB::Server::Session] session The session object.
          def new_processor(server_client, session)
            self.class::Processor.new(self, server_client, session)
          end

          # The type of this share.
          def type
            self.class::TYPE
          end

          # The name of this share.
          # @!attribute [r] name
          #   @return [String]
          attr_accessor :name
        end
      end
    end
  end
end

require 'ruby_smb/server/share/provider/disk'
require 'ruby_smb/server/share/provider/pipe'
require 'ruby_smb/server/share/provider/virtual_disk'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby_smb-3.2.7 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.6 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.5 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.4 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.3 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.2 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.1 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.2.0 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.1.7 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.1.6 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.1.5 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.1.4 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.1.3 lib/ruby_smb/server/share/provider.rb
ruby_smb-3.1.2 lib/ruby_smb/server/share/provider.rb