Sha256: 3e5aca7d7a65e472f9b5c1e6ea2d36230d5fa14cf20ad05024860c77e258bf0b

Contents?: true

Size: 439 Bytes

Versions: 4

Compression:

Stored size: 439 Bytes

Contents

require 'ecrire/commands/base'

module Ecrire
  module Commands
    class Console < ::Ecrire::Commands::Base
      def initialize(options = {}, *args)
      end

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

        shift_argv!
        Ecrire::Application.require_environment!
        Ecrire::Application.initialize!

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecrire-0.23.0 lib/ecrire/commands/console.rb
ecrire-0.22.1 lib/ecrire/commands/console.rb
ecrire-0.21.0 lib/ecrire/commands/console.rb
ecrire-0.20.0 lib/ecrire/commands/console.rb