Sha256: 5a36e186bd529b706ebab8b0a1aa753aff8086a2bcd1fed713db58850d9ae00a

Contents?: true

Size: 379 Bytes

Versions: 15

Compression:

Stored size: 379 Bytes

Contents

module LambdaPunch
  class Server

    include Singleton

    class << self

      def uri
        'druby://127.0.0.1:9030'
      end

      def start!
        require 'concurrent'
        LambdaPunch.logger.info "Server.start!..."
        instance
      end

    end

    def initialize
      @queue = Queue.new
      DRb.start_service self.class.uri, @queue
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lambda_punch-1.1.3 lib/lambda_punch/server.rb
lambda_punch-1.1.2 lib/lambda_punch/server.rb
lambda_punch-1.1.1 lib/lambda_punch/server.rb
lambda_punch-1.1.0 lib/lambda_punch/server.rb
lambda_punch-1.0.3 lib/lambda_punch/server.rb
lambda_punch-1.0.2 lib/lambda_punch/server.rb
lambda_punch-1.0.1 lib/lambda_punch/server.rb
lambda_punch-1.0.0 lib/lambda_punch/server.rb
lambda_punch-0.0.8 lib/lambda_punch/server.rb
lambda_punch-0.0.7 lib/lambda_punch/server.rb
lambda_punch-0.0.6 lib/lambda_punch/server.rb
lambda_punch-0.0.5 lib/lambda_punch/server.rb
lambda_punch-0.0.4 lib/lambda_punch/server.rb
lambda_punch-0.0.3 lib/lambda_punch/server.rb
lambda_punch-0.0.2 lib/lambda_punch/server.rb