Class: Hanami::CLI::Commands::App::Dev Private

Inherits:
Command show all
Defined in:
lib/hanami/cli/commands/app/dev.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.

Since:

  • 2.1.0

Constant Summary

Constants inherited from Command

Command::ACTION_SEPARATOR

Instance Method Summary collapse

Methods inherited from Command

#app, inherited, #measure, #run_command

Methods inherited from Hanami::CLI::Command

new

Constructor Details

#initialize(out:, err:, system_call: InteractiveSystemCall.new(out: out, err: err), **opts) ⇒ Dev

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.

Returns a new instance of Dev.

Since:

  • 2.1.0



18
19
20
21
22
23
24
25
26
# File 'lib/hanami/cli/commands/app/dev.rb', line 18

def initialize(
  out:, err:,
  system_call: InteractiveSystemCall.new(out: out, err: err),
  **opts
)
  super(out: out, err: err, **opts)

  @system_call = system_call
end

Instance Method Details

#callObject

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.

Since:

  • 2.1.0



30
31
32
33
# File 'lib/hanami/cli/commands/app/dev.rb', line 30

def call(**)
  bin, args = executable
  system_call.call(bin, *args)
end