Sha256: 32f68d0d5e2df69a39550810d5bba80bd91366129e02824bf28aa78d5844ba65

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

require 'parseconfig'
require 'versionomy'

module TaskwarriorWeb::Config
  def self.version
    @version ||= Versionomy.parse(`task _version`.strip)
  end

  def self.file
    @file ||= ParseConfig.new("#{Dir.home}/.taskrc")
  end

  def self.property(prop)
    self.file[prop]
  end

  def self.method_missing(method)
    self.file[method]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
taskwarrior-web-1.0.13 lib/taskwarrior-web/model/config.rb
taskwarrior-web-1.0.12 lib/taskwarrior-web/model/config.rb
taskwarrior-web-1.0.11 lib/taskwarrior-web/model/config.rb
taskwarrior-web-1.0.10 lib/taskwarrior-web/model/config.rb
taskwarrior-web-1.0.9 lib/taskwarrior-web/config.rb
taskwarrior-web-1.0.8 lib/taskwarrior-web/config.rb