class Cartos::CLI

Public Instance Methods

export() click to toggle source
# File lib/cartos/cli.rb, line 15
def export
  entries = if (options[:file])
              Cartos.load_from_file File.absolute_path(options[:file])
            else
              Cartos.load_from_cashbase
            end
  entries.filter_by_year options[:year]
  spread_sheet = Cartos::Spreadsheet::CartosSpreadsheet.new Cartos.config.google_spreadsheet.key
  spread_sheet.monthly entries
  spread_sheet.summary entries
end
init() click to toggle source
# File lib/cartos/cli.rb, line 8
def init
  Cartos::Generators::Config.start
end