Class: Boxing::Commands::Update
- Defined in:
- lib/boxing/commands/update.rb
Overview
The Database Updater
Instance Method Summary collapse
-
#execute ⇒ Object
Update Database.
Methods inherited from Base
Instance Method Details
#execute ⇒ Object
Update Database
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 |