Class: Jun::CLI::Commands::DB::Drop
- Defined in:
- lib/jun/cli/commands/db/drop.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#process(*args) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/jun/cli/commands/db/drop.rb', line 8 def process(*args) db_filepath = Jun.root.join("db/app.db") File.delete(db_filepath) if File.exist?(db_filepath) puts "Dropped database." end |