Sha256: d056b72629a2e1898e1f0c58732cc818a2f56fb82d32cb5be0f0bfb28fecdce2

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

require 'oxblood/command'

module Oxblood
  class Pipeline < Session
    def initialize(connection)
      super
      @commands = Array.new
    end

    def run(command)
      @commands << command
    end

    def sync
      @connection.write(@commands.join)
      @connection.read_responses(@commands.size)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oxblood-0.1.0.dev3 lib/oxblood/pipeline.rb
oxblood-0.1.0.dev2 lib/oxblood/pipeline.rb
oxblood-0.1.0.dev1 lib/oxblood/pipeline.rb