Class: Boxing::Commands::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/boxing/commands/update.rb

Overview

The Database Updater

Since:

  • 0.3.0

Instance Method Summary collapse

Methods inherited from Base

#prepare, source_root

Instance Method Details

#executeObject

Update Database

Since:

  • 0.3.0



13
14
15
16
17
18
19
# File 'lib/boxing/commands/update.rb', line 13

def execute
  if Database.exist?
    Database.new.update!
  else
    Database.download!
  end
end