lib/sportdb/cli/main.rb in sportdb-1.7.1 vs lib/sportdb/cli/main.rb in sportdb-1.7.2

- old
+ new

@@ -193,9 +193,23 @@ puts 'Done.' end end # command load + +desc 'Pull - Auto-update event fixtures from upstream online sources' +command :pull do |c| + c.action do |g,o,args| + + connect_to_db( opts ) + + SportDb.update! + + puts 'Done.' + end # action +end # command pull + + desc 'Show logs' command :logs do |c| c.action do |g,o,args| connect_to_db( opts ) \ No newline at end of file