Class: Openbox::Commands::Rake
- Inherits:
-
Openbox::Command
- Object
- Thor::Group
- Openbox::Command
- Openbox::Commands::Rake
- Defined in:
- lib/openbox/commands/rake.rb
Overview
The Rake Command
Instance Method Summary collapse
-
#execute ⇒ Object
Run rake task with database connection check.
Methods inherited from Openbox::Command
Instance Method Details
#execute ⇒ Object
Run rake task with database connection check
13 14 15 16 |
# File 'lib/openbox/commands/rake.rb', line 13 def execute Openbox.database.ensure_connection! exec("bundle exec rake #{args.join(' ')}") end |