lib/bolt/application.rb
# Install the project's modules.
#
# @param outputter [Bolt::Outputter] An outputter instance.
# @param force [Boolean] Forcibly install modules.
# @param resolve [Boolean] Resolve module dependencies.
# @return [Boolean]
#
Install the project's modules.
Install the project ' s modules .
def install_modules(outputter, force: false, resolve: true)
      assert_project_file(config.project)
      if config.project.modules.empty? && resolve
        outputter.print_message(
          "Project configuration file #{config.project.project_file} does not "\
          "specify any module dependencies. Nothing to do."
        )
        return true
      end
      installer = Bolt::ModuleInstaller.new(outputter, pal)
      installer.install(config.project.modules,
                        config.project.puppetfile,
                        config.project.managed_moduledir,
                        @plugins.resolve_references(config.module_install),
                        force: force,
                        resolve: resolve)
    end
def install_modules ( outputter , force : false , resolve : true ) assert_project_file ( config . project ) if config . project . modules . empty? && resolve outputter . print_message ( "Project configuration file #{config.project.project_file} does not " "specify any module dependencies. Nothing to do." ) return true end installer = Bolt :: ModuleInstaller . new ( outputter , pal ) installer . install ( config . project . modules , config . project . puppetfile , config . project . managed_moduledir , @plugins . resolve_references ( config . module_install ) , force : force , resolve : resolve ) end
Install the project's modules.
Install the project ' s modules .
None
Boolean
outputter
An outputter instance.
An outputter instance .
force
Forcibly install modules.
Forcibly install modules .
resolve
Resolve module dependencies.
Resolve module dependencies .