Module: R10K::CLI::Deploy

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

Defined Under Namespace

Modules: Display, Environment, Module

Class Method Summary collapse

Class Method Details

.commandObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/r10k/cli/deploy.rb', line 13

def self.command
  @cmd ||= Cri::Command.define do
    name    'deploy'
    usage   'deploy <subcommand>'
    summary 'Puppet dynamic environment deployment'

    description "`r10k deploy` implements the Git branch to Puppet environment workflow\n(https://puppet.com/docs/puppet/latest/environments_about.html).\n    DESCRIPTION\n\n    option nil, :cachedir, 'Specify a cachedir, overriding the value in config', argument: :required\n    flag nil, :'no-force', 'Prevent the overwriting of local module modifications'\n    flag nil, :'generate-types', 'Run `puppet generate types` after updating an environment'\n    flag nil, :'exclude-spec', 'Exclude the module\\'s spec dir from deployment'\n    option nil, :'puppet-path', 'Path to puppet executable', argument: :required do |value, cmd|\n      unless File.executable? value\n        $stderr.puts \"The specified puppet executable \#{value} is not executable.\"\n        puts cmd.help\n        exit 1\n      end\n    end\n    option nil, :'puppet-conf', 'Path to puppet.conf', argument: :required\n    option nil, :'private-key', 'Path to SSH key to use when cloning. Only valid with rugged provider', argument: :required\n    option nil, :'oauth-token', 'Path to OAuth token to use when cloning. Only valid with rugged provider', argument: :required\n    option nil, :'github-app-id', 'Github App id. Only valid with rugged provider', argument: :required\n    option nil, :'github-app-key', 'Github App private key. Only valid with rugged provider', argument: :required\n    option nil, :'github-app-ttl', 'Github App token expiration, in seconds. Only valid with rugged provider', default: \"120\", argument: :optional\n\n    run do |opts, args, cmd|\n      puts cmd.help(:verbose => opts[:verbose])\n      exit 0\n    end\n  end\nend\n"