module R10K::CLI::Deploy::Environment
Public Class Methods
command()
click to toggle source
# File lib/r10k/cli/deploy.rb, line 34 def self.command @cmd ||= Cri::Command.define do name 'environment' usage 'environment <options> <environment> <...>' summary 'Deploy environments and their dependent modules' description <<-DESCRIPTION `r10k deploy environment` creates and updates Puppet environments based on Git branches. Environments can provide a Puppetfile at the root of the directory to deploy independent Puppet modules. To recursively deploy an environment, pass the `--puppetfile` flag to the command. **NOTE**: If an environment has a Puppetfile when it is instantiated a recursive update will be forced. It is assumed that environments are dependent on modules specified in the Puppetfile and an update will be automatically scheduled. On subsequent deployments, Puppetfile deployment will default to off. DESCRIPTION flag :p, :puppetfile, 'Deploy modules from a puppetfile' runner R10K::Action::CriRunner.wrap(R10K::Action::Deploy::Environment) end end