Module: R10K::CLI::Deploy::Environment

Defined in:
lib/r10k/cli/deploy.rb

Class Method Summary collapse

Class Method Details

.commandObject



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/r10k/cli/deploy.rb', line 64

def self.command
  @cmd ||= Cri::Command.define do
    name    'environment'
    usage   'environment <options> <environment> <...>'
    summary 'Deploy environments and their dependent modules'

    description "`r10k deploy environment` creates and updates Puppet environments based on Git\nbranches.\n\nEnvironments can provide a Puppetfile at the root of the directory to deploy\nindependent Puppet modules. To recursively deploy an environment, pass the\n`--modules` flag to the command.\n\n**NOTE**: If an environment has a Puppetfile when it is instantiated a\nrecursive update will be forced. It is assumed that environments are dependent\non modules specified in the Puppetfile and an update will be automatically\nscheduled. On subsequent deployments, Puppetfile deployment will default to off.\n    DESCRIPTION\n\n    flag :p, :puppetfile, 'Deploy modules (deprecated, use -m)'\n    flag :m, :modules, 'Deploy modules'\n    flag nil, :incremental, 'Used with the --modules flag, only update those modules whose definition has changed or whose definition allows the version to float'\n    option nil, :'default-branch-override', 'Specify a branchname to override the default branch in the puppetfile',\n           argument: :required\n\n    runner R10K::Action::CriRunner.wrap(R10K::Action::Deploy::Environment)\n  end\nend\n"