r10k 1.0.0rc4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/r10k/cli/deploy.rb +25 -0
- data/lib/r10k/cli/puppetfile.rb +5 -0
- data/lib/r10k/version.rb +1 -1
- metadata +5 -6
data/lib/r10k/cli/deploy.rb
CHANGED
@@ -15,6 +15,11 @@ module R10K::CLI
|
|
15
15
|
usage 'deploy <subcommand>'
|
16
16
|
summary 'Puppet dynamic environment deployment'
|
17
17
|
|
18
|
+
description <<-DESCRIPTION
|
19
|
+
`r10k deploy` implements the Git branch to Puppet environment workflow
|
20
|
+
(https://puppetlabs.com/blog/git-workflow-and-puppet-environments/).
|
21
|
+
DESCRIPTION
|
22
|
+
|
18
23
|
required :c, :config, 'Specify a configuration file'
|
19
24
|
|
20
25
|
run do |opts, args, cmd|
|
@@ -31,6 +36,20 @@ module R10K::CLI
|
|
31
36
|
usage 'environment <options> <environment> <...>'
|
32
37
|
summary 'deploy environments and their dependent modules'
|
33
38
|
|
39
|
+
description <<-DESCRIPTION
|
40
|
+
`r10k deploy environment` creates and updates Puppet environments based on Git
|
41
|
+
branches.
|
42
|
+
|
43
|
+
Environments can provide a Puppetfile at the root of the directory to deploy
|
44
|
+
independent Puppet modules. To recursively deploy an environment, pass the
|
45
|
+
`--puppetfile` flag to the command.
|
46
|
+
|
47
|
+
**NOTE**: If an environment has a Puppetfile when it is instantiated a
|
48
|
+
recursive update will be forced. It is assumed that environments are dependent
|
49
|
+
on modules specified in the Puppetfile and an update will be automatically
|
50
|
+
scheduled. On subsequent deployments, Puppetfile deployment will default to off.
|
51
|
+
DESCRIPTION
|
52
|
+
|
34
53
|
flag :p, :puppetfile, 'Deploy modules from a puppetfile'
|
35
54
|
|
36
55
|
run do |opts, args, cmd|
|
@@ -61,6 +80,12 @@ module R10K::CLI
|
|
61
80
|
usage 'module [module] <module ...>'
|
62
81
|
summary 'deploy modules in all environments'
|
63
82
|
|
83
|
+
description <<-DESCRIPTION
|
84
|
+
`r10k deploy module` Deploys and updates modules inside of Puppet environments.
|
85
|
+
It will load the Puppetfile configurations out of all environments, and will
|
86
|
+
try to deploy the given module names in all environments.
|
87
|
+
DESCRIPTION
|
88
|
+
|
64
89
|
run do |opts, args, cmd|
|
65
90
|
deploy = R10K::Deployment.load_config(opts[:config])
|
66
91
|
|
data/lib/r10k/cli/puppetfile.rb
CHANGED
@@ -11,6 +11,11 @@ module R10K::CLI
|
|
11
11
|
usage 'puppetfile <subcommand>'
|
12
12
|
summary 'Perform operations on a Puppetfile'
|
13
13
|
|
14
|
+
description <<-DESCRIPTION
|
15
|
+
`r10k puppetfile` provides an implementation of the librarian-puppet style
|
16
|
+
Puppetfile (http://bombasticmonkey.com/librarian-puppet/).
|
17
|
+
DESCRIPTION
|
18
|
+
|
14
19
|
run do |opts, args, cmd|
|
15
20
|
puts cmd.help(:verbose => opts[:verbose])
|
16
21
|
exit 0
|
data/lib/r10k/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r10k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Adrien Thebo
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colored
|
@@ -194,9 +194,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
195
|
none: false
|
196
196
|
requirements:
|
197
|
-
- - ! '
|
197
|
+
- - ! '>='
|
198
198
|
- !ruby/object:Gem::Version
|
199
|
-
version:
|
199
|
+
version: '0'
|
200
200
|
requirements: []
|
201
201
|
rubyforge_project:
|
202
202
|
rubygems_version: 1.8.23
|
@@ -209,4 +209,3 @@ test_files:
|
|
209
209
|
- spec/unit/git/cache_spec.rb
|
210
210
|
- spec/unit/deployment/environment_spec.rb
|
211
211
|
- spec/unit/module/forge_spec.rb
|
212
|
-
has_rdoc:
|