Sha256: a3de0f13bc3f676698b6983024a637fa0384964276c55fc8a480acb31942490b

Contents?: true

Size: 442 Bytes

Versions: 6

Compression:

Stored size: 442 Bytes

Contents

require 'rev'
require 'msgpack/rpc/transport/base'
require 'msgpack/rpc/transport/unix'

module MelissaData::Client

  class Unix < Base
    def self.available?
      File.exists? socket_file
    end

    def self.socket_file
      MelissaData::DEFAULT_SOCKET_FILE
    end

    def initialize
      transport = MessagePack::RPC::UNIXTransport.new
      @rpc = MessagePack::RPC::Client.new transport, self.class.socket_file
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
melissadata-0.1.5 lib/melissadata/client/unix.rb
melissadata-0.1.4 lib/melissadata/client/unix.rb
melissadata-0.1.3 lib/melissadata/client/unix.rb
melissadata-0.1.2 lib/melissadata/client/unix.rb
melissadata-0.1.1 lib/melissadata/client/unix.rb
melissadata-0.1.0 lib/melissadata/client/unix.rb