Module: Tag

Defined in:
lib/tag.rb,
lib/tag/store.rb,
lib/tag/runner.rb,
lib/tag/version.rb

Defined Under Namespace

Classes: Runner, Store

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.homeObject



11
12
13
14
15
# File 'lib/tag.rb', line 11

def self.home
  @home ||= (ENV['TAG_HOME'] || File.join(Dir.home, '.tag')).tap do |dir|
    FileUtils.mkdir_p(dir)
  end
end

.store(model = nil) ⇒ Object



7
8
9
# File 'lib/tag.rb', line 7

def self.store(model = nil)
  @store ||= Store.new(model)
end