Class: Ecrire::Commands::Console

Inherits:
Base
  • Object
show all
Defined in:
lib/ecrire/commands/console.rb

Instance Method Summary collapse

Methods inherited from Base

#shift_argv!

Constructor Details

#initialize(options = {}, *args) ⇒ Console

Returns a new instance of Console.



6
7
# File 'lib/ecrire/commands/console.rb', line 6

def initialize(options = {}, *args)
end

Instance Method Details

#run!Object



9
10
11
12
13
14
15
16
17
# File 'lib/ecrire/commands/console.rb', line 9

def run!
  require 'ecrire'
  require 'rails/commands/console'

  shift_argv!
  Ecrire::Application.initialize!

  Rails::Console.start(Ecrire::Application, *ARGV)
end