lib/bolt/module_installer.rb
# Installs the Puppetfile and generates types.
#
Installs the Puppetfile and generates types.
Installs the Puppetfile and generates types .
def install_puppetfile(path, moduledir, config = {})
      @outputter.print_action_step("Syncing modules from #{path} to #{moduledir}")
      @outputter.start_spin
      ok = Installer.new(config).install(path, moduledir)
      @outputter.stop_spin
      if ok
        @outputter.print_action_step("Generating type references")
        @pal.generate_types(cache: true)
      end
      @outputter.print_puppetfile_result(ok, path, moduledir)
      ok
    end
def install_puppetfile ( path , moduledir , config = { } ) @outputter . print_action_step ( "Syncing modules from #{path} to #{moduledir}" ) @outputter . start_spin ok = Installer . new ( config ) . install ( path , moduledir ) @outputter . stop_spin if ok @outputter . print_action_step ( "Generating type references" ) @pal . generate_types ( cache : true ) end @outputter . print_puppetfile_result ( ok , path , moduledir ) ok end
Installs the Puppetfile and generates types.
Installs the Puppetfile and generates types .
# Automatically generate types after installing modules
path
<not_specific>
moduledir
<not_specific>
config
<not_specific>