Class: Openbox::Commands::Rake

Inherits:
Openbox::Command show all
Defined in:
lib/openbox/commands/rake.rb

Overview

The Rake Command

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Openbox::Command

#before_execute

Instance Method Details

#executeObject

Run rake task with database connection check

Since:

  • 0.1.0



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