Sha256: da5bb4ea653b2c3f7c9201ff5de3c7418400f9a416b0e0b18c39bc490cc09eb1

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

require 'cistern/version'

# stdlib
require 'time'
# also required by 'rspec'. do not remove
require 'set'

module Cistern
  Error   = Class.new(StandardError)
  Timeout = Class.new(Error)

  require 'cistern/hash'
  require 'cistern/string'
  require 'cistern/mock'
  require 'cistern/wait_for'
  require 'cistern/attributes'
  require 'cistern/collection'
  require 'cistern/model'
  require 'cistern/service'
  require 'cistern/client'
  require 'cistern/singular'
  require 'cistern/request'
  require 'cistern/data'
  require 'cistern/data/hash'
  require 'cistern/data/redis'

  extend WaitFor

  require 'cistern/formatter'

  def self.formatter=(formatter)
    @formatter = formatter
  end

  def self.formatter
    @formatter ||= Cistern::Formatter.default
  end

  def self.deprecation_warnings?
    @deprecation_warnings.nil? ? true : !!@deprecation_warnings
  end

  def self.deprecation_warnings=(status)
    @deprecation_warnings = status
  end

  def self.deprecation(message, source = caller[1])
    STDERR.puts("#{message}. (#{source})") if deprecation_warnings?
  end
end

Cistern.timeout       = 180 # 3 minutes
Cistern.poll_interval = 15  # 15 seconds

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cistern-2.3.0 lib/cistern.rb
cistern-2.2.7 lib/cistern.rb
cistern-2.2.6 lib/cistern.rb