r10k 3.12.0 → 3.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.mkd +6 -0
- data/lib/r10k/action/base.rb +1 -1
- data/lib/r10k/action/deploy/deploy_helpers.rb +4 -0
- data/lib/r10k/action/deploy/display.rb +1 -1
- data/lib/r10k/action/deploy/environment.rb +5 -7
- data/lib/r10k/action/deploy/module.rb +3 -4
- data/lib/r10k/action/visitor.rb +3 -0
- data/lib/r10k/module/local.rb +5 -1
- data/lib/r10k/module_loader/puppetfile.rb +4 -0
- data/lib/r10k/util/purgeable.rb +4 -0
- data/lib/r10k/util/setopts.rb +2 -0
- data/lib/r10k/util/subprocess.rb +1 -0
- data/lib/r10k/version.rb +1 -1
- data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile +1 -0
- data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new +1 -0
- data/spec/unit/module_loader/puppetfile_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5500f864c81a0b1ff5f48461bca9de375450f452028a93d381ec65eac3b35865
|
4
|
+
data.tar.gz: 1d675799b9bf1df2ee328780bc90ed4e79c02bf7706a166dd40f5af952e9610a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc75dcceceb3b368c6ee9dd1773a92530e67a59b1e35b52e3d8205d3dffb6b1b7d4b927edbe58bc828d9a1782d1052254464ca7c0556ea6099c5975811ddad1a
|
7
|
+
data.tar.gz: 12ecfa266d5c7cafc1a6656bb54d5429ecb030c2b89af8d61a2dcd6587f8bc1ff6f94221a4f185d9e463a96df652d2434adec0c59a78288bc44dda087c67ca12
|
data/CHANGELOG.mkd
CHANGED
@@ -4,6 +4,12 @@ CHANGELOG
|
|
4
4
|
Unreleased
|
5
5
|
----------
|
6
6
|
|
7
|
+
3.12.1
|
8
|
+
------
|
9
|
+
|
10
|
+
- Fix requiring individual R10K::Actions without having already required 'r10k'. [#1223](https://github.com/puppetlabs/r10k/issues/1223)
|
11
|
+
- Fix evaluation of Puppetfiles that include local modules. [#1224](https://github.com/puppetlabs/r10k/pull/1224)
|
12
|
+
|
7
13
|
3.12.0
|
8
14
|
------
|
9
15
|
|
data/lib/r10k/action/base.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
require 'r10k/util/setopts'
|
2
|
-
require 'r10k/util/cleaner'
|
3
|
-
require 'r10k/deployment'
|
4
|
-
require 'r10k/logging'
|
5
|
-
require 'r10k/action/visitor'
|
6
1
|
require 'r10k/action/base'
|
7
2
|
require 'r10k/action/deploy/deploy_helpers'
|
3
|
+
require 'r10k/action/visitor'
|
4
|
+
require 'r10k/deployment'
|
5
|
+
require 'r10k/util/setopts'
|
6
|
+
|
8
7
|
require 'json'
|
9
8
|
|
10
9
|
module R10K
|
@@ -13,6 +12,7 @@ module R10K
|
|
13
12
|
class Environment < R10K::Action::Base
|
14
13
|
|
15
14
|
include R10K::Action::Deploy::DeployHelpers
|
15
|
+
include R10K::Action::Visitor
|
16
16
|
|
17
17
|
# Deprecated
|
18
18
|
attr_reader :force
|
@@ -81,8 +81,6 @@ module R10K
|
|
81
81
|
@visit_ok
|
82
82
|
end
|
83
83
|
|
84
|
-
include R10K::Action::Visitor
|
85
|
-
|
86
84
|
private
|
87
85
|
|
88
86
|
def read_purge_allowlist (whitelist, allowlist)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'r10k/deployment'
|
2
|
-
require 'r10k/action/visitor'
|
3
1
|
require 'r10k/action/base'
|
4
2
|
require 'r10k/action/deploy/deploy_helpers'
|
3
|
+
require 'r10k/action/visitor'
|
4
|
+
require 'r10k/deployment'
|
5
5
|
|
6
6
|
module R10K
|
7
7
|
module Action
|
@@ -9,6 +9,7 @@ module R10K
|
|
9
9
|
class Module < R10K::Action::Base
|
10
10
|
|
11
11
|
include R10K::Action::Deploy::DeployHelpers
|
12
|
+
include R10K::Action::Visitor
|
12
13
|
|
13
14
|
# Deprecated
|
14
15
|
attr_reader :force
|
@@ -69,8 +70,6 @@ module R10K
|
|
69
70
|
@visit_ok
|
70
71
|
end
|
71
72
|
|
72
|
-
include R10K::Action::Visitor
|
73
|
-
|
74
73
|
private
|
75
74
|
|
76
75
|
def visit_deployment(deployment)
|
data/lib/r10k/action/visitor.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'r10k/errors/formatting'
|
2
|
+
require 'r10k/logging'
|
2
3
|
|
3
4
|
module R10K
|
4
5
|
module Action
|
@@ -13,6 +14,8 @@ module R10K
|
|
13
14
|
# @api private
|
14
15
|
module Visitor
|
15
16
|
|
17
|
+
include R10K::Logging
|
18
|
+
|
16
19
|
# Dispatch to the type specific visitor method
|
17
20
|
#
|
18
21
|
# @param type [Symbol] The object type to dispatch for
|
data/lib/r10k/module/local.rb
CHANGED
@@ -11,10 +11,14 @@ class R10K::Module::Local < R10K::Module::Base
|
|
11
11
|
args.is_a?(Hash) && (args[:local] || args[:type].to_s == 'local')
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
14
|
+
def self.statically_defined_version(*)
|
15
15
|
"0.0.0"
|
16
16
|
end
|
17
17
|
|
18
|
+
def version
|
19
|
+
self.class.statically_defined_version
|
20
|
+
end
|
21
|
+
|
18
22
|
def properties
|
19
23
|
{
|
20
24
|
:expected => "0.0.0 (local)",
|
data/lib/r10k/util/purgeable.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'r10k/logging'
|
2
|
+
|
1
3
|
require 'fileutils'
|
2
4
|
|
3
5
|
module R10K
|
@@ -9,6 +11,8 @@ module R10K
|
|
9
11
|
# {#desired_contents}
|
10
12
|
module Purgeable
|
11
13
|
|
14
|
+
include R10K::Logging
|
15
|
+
|
12
16
|
HIDDEN_FILE = /\.[^.]+/
|
13
17
|
|
14
18
|
FN_MATCH_OPTS = File::FNM_PATHNAME | File::FNM_DOTMATCH
|
data/lib/r10k/util/setopts.rb
CHANGED
data/lib/r10k/util/subprocess.rb
CHANGED
data/lib/r10k/version.rb
CHANGED
@@ -2,5 +2,5 @@ module R10K
|
|
2
2
|
# When updating to a new major (X) or minor (Y) version, include `#major` or
|
3
3
|
# `#minor` (respectively) in your commit message to trigger the appropriate
|
4
4
|
# release. Otherwise, a new patch (Z) version will be released.
|
5
|
-
VERSION = '3.12.
|
5
|
+
VERSION = '3.12.1'
|
6
6
|
end
|
@@ -366,6 +366,7 @@ describe R10K::ModuleLoader::Puppetfile do
|
|
366
366
|
expect(metadata['baz']).to eq('123abc456')
|
367
367
|
expect(metadata['fizz']).to eq('1234567890abcdef1234567890abcdef12345678')
|
368
368
|
expect(metadata['buzz']).to eq(nil)
|
369
|
+
expect(metadata['canary']).to eq('0.0.0')
|
369
370
|
end
|
370
371
|
|
371
372
|
it 'does not load module implementations for static versioned' do
|
@@ -381,6 +382,7 @@ describe R10K::ModuleLoader::Puppetfile do
|
|
381
382
|
expect(modules['baz']).to be_a_kind_of(R10K::Module::Definition)
|
382
383
|
expect(modules['fizz']).to be_a_kind_of(R10K::Module::Definition)
|
383
384
|
expect(modules['buzz']).to be_a_kind_of(R10K::Module::Git)
|
385
|
+
expect(modules['canary']).to be_a_kind_of(R10K::Module::Definition)
|
384
386
|
end
|
385
387
|
|
386
388
|
it 'loads module implementations whose static versions are different' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r10k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.12.
|
4
|
+
version: 3.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Thebo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|