Sha256: f03a3df86ef393aad96b1005c46e6a00cc5f9e58e878e2168f11b450af0caf84

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# coding: utf-8

begin
  require 'rubygems'
rescue LoadError
end

require 'fileutils'
require 'multi_json'

$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])

require 'active_support/core_ext/module/delegation'
require 'kaboom/output'
require 'kaboom/color'
require 'kaboom/platform'
require 'kaboom/command'
require 'kaboom/config'
require 'kaboom/item'
require 'kaboom/list'

require 'kaboom/storage'
require 'kaboom/storage/base'
require 'kaboom/storage/json'
require 'kaboom/storage/redis'
require 'kaboom/storage/mongodb'
require 'kaboom/storage/keychain'
require 'kaboom/storage/gist'

require 'kaboom/core_ext/symbol'
require 'kaboom/remote'

module Boom
  VERSION = '0.3.3'

  extend self

  def storage
    @storage ||= Boom::Storage.backend
  end

  # Public: tell Boom to use the storage specified in
  # ~/.boom.remote.conf
  # Returns a Config instance.
  def use_remote remote=true
    @config = Boom::Config.new remote
  end

  def config
    @config ||= Boom::Config.new
  end

  def remote?
    config.remote
  end

  def local?
    !remote?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kaboom-0.3.3 lib/kaboom.rb