module Ork
Constants
- VERSION
Public Class Methods
conn()
click to toggle source
# File lib/ork.rb, line 12 def self.conn @conn ||= Ork::Connection.new end
connect(context = :main, options = {})
click to toggle source
Stores the connection options for the Riak instance.
Examples:
Ork.connect(:http_port => 6380, :pb_port => 15000)
All of the options are simply passed on to ‘Riak::Client.new`.
# File lib/ork.rb, line 24 def self.connect(context = :main, options = {}) conn.start(context, options) end
riak()
click to toggle source
Use this if you want to do quick ad hoc riak commands against the defined Ork
connection.
Examples:
Ork.riak.buckets Ork.riak.bucket('foo').keys
# File lib/ork.rb, line 36 def self.riak conn.riak end