Sha256: 12e6206de4b84a43d725a20afc46d95c85f1dc53fe4e693853d975fa57834d01

Contents?: true

Size: 301 Bytes

Versions: 56

Compression:

Stored size: 301 Bytes

Contents

require "shackles"
require "open4"
require "switchman/engine"

module Switchman
  def self.config
    # TODO: load from yaml
    @config ||= {}
  end

  def self.cache
    (@cache.respond_to?(:call) ? @cache.call : @cache) || ::Rails.cache
  end

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

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
switchman-1.3.18 lib/switchman.rb
switchman-1.3.17 lib/switchman.rb
switchman-1.3.14.pre.1 lib/switchman.rb
switchman-1.3.13.pre.1 lib/switchman.rb
switchman-1.3.16 lib/switchman.rb
switchman-1.3.15 lib/switchman.rb
switchman-1.3.14 lib/switchman.rb
switchman-1.3.13 lib/switchman.rb
switchman-1.3.12 lib/switchman.rb
switchman-1.3.11 lib/switchman.rb
switchman-1.3.10 lib/switchman.rb
switchman-1.3.9 lib/switchman.rb
switchman-1.3.8 lib/switchman.rb
switchman-1.3.7 lib/switchman.rb
switchman-1.3.6 lib/switchman.rb
switchman-1.3.5 lib/switchman.rb
switchman-1.3.4 lib/switchman.rb
switchman-1.3.3 lib/switchman.rb
switchman-1.3.2 lib/switchman.rb
switchman-1.3.1 lib/switchman.rb