module R10K::CLI::Puppetfile::Install

Public Class Methods

command() click to toggle source
# File lib/r10k/cli/puppetfile.rb, line 27
def self.command
  @cmd ||= Cri::Command.define do
    name    'install'
    usage   'install'
    summary 'Install all modules from a Puppetfile'
    option nil, :moduledir, 'Path to install modules to', argument: :required
    option nil, :puppetfile, 'Path to puppetfile', argument: :required
    option nil, :'module-exclude-regex', 'A regex to exclude modules from installation. Helpful in CI environments.', argument: :required
    flag     nil, :force, 'Force locally changed files to be overwritten'
    runner R10K::Action::Puppetfile::CriRunner.wrap(R10K::Action::Puppetfile::Install)
  end
end