class Wawka::Cli
Public Instance Methods
config()
click to toggle source
# File lib/wawka/cli.rb, line 17 def config raise "There is already: #{Wawka.config_path}" if Wawka.config_path.exist? FileUtils.cp( Wawka.root.join('example/config.yml'), Wawka.config_path.to_s ) end
harvest(output_file, date=Date.today)
click to toggle source
# File lib/wawka/cli.rb, line 5 def harvest(output_file, date=Date.today) Transactions::GenerateEvidence.new(date).call do |resp| resp.success do |file| FileUtils.cp(file.path, output_file) puts "Generated evidence: #{output_file}" end resp.failure {} end end