Module: Boom

Extended by:
Boom
Included in:
Boom
Defined in:
lib/kaboom/item.rb,
lib/kaboom.rb,
lib/kaboom/list.rb,
lib/kaboom/color.rb,
lib/kaboom/config.rb,
lib/kaboom/output.rb,
lib/kaboom/remote.rb,
lib/kaboom/command.rb,
lib/kaboom/storage.rb,
lib/kaboom/platform.rb,
lib/kaboom/storage/base.rb,
lib/kaboom/storage/gist.rb,
lib/kaboom/storage/json.rb,
lib/kaboom/storage/redis.rb,
lib/kaboom/storage/mongodb.rb,
lib/kaboom/storage/keychain.rb

Overview

Keychain provides methods for using Mac OS X’s Keychain as a storage option. It saves lists as Keychain files in ~/Library/Keychains with the filename format being: “Boom.list.mylist.keychain”

Defined Under Namespace

Modules: Color, Output, Remote, Storage Classes: Command, Config, Item, List, Platform

Constant Summary collapse

VERSION =
'0.3.2'

Instance Method Summary collapse

Instance Method Details

#configObject



48
49
50
# File 'lib/kaboom.rb', line 48

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

#local?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/kaboom.rb', line 56

def local?
  !remote?
end

#remote?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/kaboom.rb', line 52

def remote?
  config.remote
end

#storageObject



37
38
39
# File 'lib/kaboom.rb', line 37

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

#use_remote(remote = true) ⇒ Object

Public: tell Boom to use the storage specified in ~/.boom.remote.conf Returns a Config instance.



44
45
46
# File 'lib/kaboom.rb', line 44

def use_remote remote=true
  @config = Boom::Config.new remote
end