Class: Minipack::Commands::PkgInstall
- Defined in:
- lib/minipack/commands/pkg_install.rb
Constant Summary collapse
- PKG_INSTALL_CACHE_KEY =
['package.json', 'package-lock.json', 'yarn.lock'].freeze
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(logger: nil) ⇒ PkgInstall
constructor
A new instance of PkgInstall.
Methods inherited from Base
Constructor Details
#initialize(logger: nil) ⇒ PkgInstall
Returns a new instance of PkgInstall.
8 9 10 |
# File 'lib/minipack/commands/pkg_install.rb', line 8 def initialize(logger: nil) @logger = logger end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/minipack/commands/pkg_install.rb', line 12 def call Minipack.configuration.leaves.each do |c| # Note: someone wants pre_pkg_install hook? pkg_install(c) # Note: someone wants post_pkg_install hook? end true end |