Class: Openbox::Commands::Console

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

Overview

The Console Command

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Openbox::Command

#before_execute

Instance Method Details

#executeObject

Run rails console

Since:

  • 0.1.0



13
14
15
16
# File 'lib/openbox/commands/console.rb', line 13

def execute
  Openbox.database.ensure_connection!
  exec('bundle exec rails console')
end