Class: Hanami::CLI::Commands::App::Console Private
- Inherits:
-
Command
- Object
- Dry::CLI::Command
- Hanami::CLI::Command
- Command
- Hanami::CLI::Commands::App::Console
- Defined in:
- lib/hanami/cli/commands/app/console.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Methods inherited from Command
#app, #inflector, inherited, #measure, #run_command
Methods inherited from Hanami::CLI::Command
Constructor Details
This class inherits a constructor from Hanami::CLI::Command
Instance Method Details
#call(engine: nil, boot: DEFAULT_BOOT, **opts) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/hanami/cli/commands/app/console.rb', line 47 def call(engine: nil, boot: DEFAULT_BOOT, **opts) app.boot if boot engine ||= app.config.console.engine.to_s console_engine = resolve_engine(engine, opts) if console_engine.nil? err.puts "`#{engine}' is not bundled. Please run `bundle add #{engine}' and retry." exit(1) end console_engine.start end |