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.5.15 lib/switchman.rb
switchman-1.5.14 lib/switchman.rb
switchman-1.5.13 lib/switchman.rb
switchman-1.5.11 lib/switchman.rb
switchman-1.5.10 lib/switchman.rb
switchman-1.5.9 lib/switchman.rb
switchman-1.5.8 lib/switchman.rb
switchman-1.5.7 lib/switchman.rb
switchman-1.5.6 lib/switchman.rb
switchman-1.5.5 lib/switchman.rb
switchman-1.5.4 lib/switchman.rb
switchman-1.5.3 lib/switchman.rb
switchman-1.5.2 lib/switchman.rb
switchman-1.5.1 lib/switchman.rb
switchman-1.5.0 lib/switchman.rb
switchman-1.4.4 lib/switchman.rb
switchman-1.4.3 lib/switchman.rb
switchman-1.4.2 lib/switchman.rb
switchman-1.4.1 lib/switchman.rb
switchman-1.4.0 lib/switchman.rb