Class: Hanami::CLI::Commands::App::Dev Private
- Inherits:
-
Command
- Object
- Dry::CLI::Command
- Hanami::CLI::Command
- Command
- Hanami::CLI::Commands::App::Dev
- 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.
Instance Method Summary collapse
- #call ⇒ Object private
-
#initialize(out:, err:, system_call: InteractiveSystemCall.new(out: out, err: err), **opts) ⇒ Dev
constructor
private
A new instance of Dev.
Methods inherited from Command
#app, #inflector, inherited, #measure, #run_command
Methods inherited from Hanami::CLI::Command
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.
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
#call ⇒ 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.
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 |