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.3'

Instance Method Summary collapse

Instance Method Details

#configObject



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

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

#local?Boolean

Returns:

  • (Boolean)


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

def local?
  !remote?
end

#remote?Boolean

Returns:

  • (Boolean)


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

def remote?
  config.remote
end

#storageObject



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

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.



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

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