Class: Hanami::CLI::Commands::App::Install Private
- Inherits:
-
Command
- Object
- Dry::CLI::Command
- Hanami::CLI::Command
- Command
- Hanami::CLI::Commands::App::Install
- Defined in:
- lib/hanami/cli/commands/app/install.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.
The install command exists to provide third parties a hook for their own installation behaviour to be run as part of ‘hanami new`.
Third parties should register their install commands like so:
“‘ if Hanami::CLI.within_hanami_app?
Hanami::CLI.after "install", MyHanamiGem::CLI::Commands::Install
end ““
Instance Method Summary collapse
- #call(head: DEFAULT_HEAD) ⇒ Object private
-
#initialize(fs:, bundler: CLI::Bundler.new(fs: fs), **opts) ⇒ Install
constructor
private
rubocop:disable Lint/MissingSuper.
Methods inherited from Command
#app, #inflector, inherited, #measure, #run_command
Methods inherited from Hanami::CLI::Command
Constructor Details
#initialize(fs:, bundler: CLI::Bundler.new(fs: fs), **opts) ⇒ Install
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.
rubocop:disable Lint/MissingSuper
40 41 42 43 44 45 46 |
# File 'lib/hanami/cli/commands/app/install.rb', line 40 def initialize( fs:, bundler: CLI::Bundler.new(fs: fs), **opts ) @bundler = bundler end |
Instance Method Details
#call(head: DEFAULT_HEAD) ⇒ 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.
51 52 53 |
# File 'lib/hanami/cli/commands/app/install.rb', line 51 def call(head: DEFAULT_HEAD, **) bundler.install! end |