Sha256: ba7b81ad7036d1151b275f34342ba5fc39fe72a88aa1917343c131635313e0e0

Contents?: true

Size: 1.16 KB

Versions: 13

Compression:

Stored size: 1.16 KB

Contents

module Pmux
  module Gateway
    class ClientContext
      # 処理に必要なクライアントの情報を保持するクラス
      def initialize request, response, mapper, command, detect_error
        @request = request
        @response = response
        @mapper = mapper
        @command = command
        @detect_error = detect_error
        @stdout_data = ""
        @stderr_data = ""
        @pmux_terminated = false
        @force_pmux_terminated = false
        @content_too_big = false
        @pid = nil
        @start_datetime = nil
        @end_datetime = nil
        @peername = nil
        @user = nil
        @status = "init"
      end 
    
      def set_pmux_handler pmux_handler
        @pmux_handler = pmux_handler
      end
    
      def append_stdout_data data
        @stdout_data << data
      end
    
      def append_stderr_data data
        @stderr_data << data
      end
    
      attr_reader :request, :response, :pmux_handler, :mapper, :command, :detect_error, :stdout_data, :stderr_data
      attr_accessor :pmux_terminated, :force_pmux_terminated, :content_too_big, :pid, :start_datetime, :end_datetime, :status, :peername, :user
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pmux-gw-0.1.12 lib/pmux-gw/client_context.rb
pmux-gw-0.1.11 lib/pmux-gw/client_context.rb
pmux-gw-0.1.10 lib/pmux-gw/client_context.rb
pmux-gw-0.1.9 lib/pmux-gw/client_context.rb
pmux-gw-0.1.8 lib/pmux-gw/client_context.rb
pmux-gw-0.1.7 lib/pmux-gw/client_context.rb
pmux-gw-0.1.6 lib/pmux-gw/client_context.rb
pmux-gw-0.1.5 lib/pmux-gw/client_context.rb
pmux-gw-0.1.4 lib/pmux-gw/client_context.rb
pmux-gw-0.1.3 lib/pmux-gw/client_context.rb
pmux-gw-0.1.2 lib/pmux-gw/client_context.rb
pmux-gw-0.1.1 lib/pmux-gw/client_context.rb
pmux-gw-0.1.0 lib/pmux-gw/client_context.rb