class TotalRecall::Cli

Public Instance Methods

init(name = "total_recall") click to toggle source
# File lib/total_recall.rb, line 242
def init(name = "total_recall")
  destination = name + ".yml"

  @version = TotalRecall::VERSION
  @name = name
  template("simple.yml.tt", destination)
end
ledger() click to toggle source
# File lib/total_recall.rb, line 225
def ledger
  load(options[:require]) if options[:require]

  config_path = File.expand_path(options[:config])
  puts TotalRecall::Config.new(file: config_path,
                               :transactions_only => options[:transactions_only]).ledger
end
sample() click to toggle source
# File lib/total_recall.rb, line 234
def sample
  @version = TotalRecall::VERSION
  template("sample.yml.tt")

  say "Now run '#{$0} ledger -c sample.yml' to generate the ledger"
end
version() click to toggle source
# File lib/total_recall.rb, line 251
def version
  puts TotalRecall::VERSION
end