ra10ke 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +9 -8
- data/lib/ra10ke/puppetfile_parser.rb +2 -2
- data/lib/ra10ke/version.rb +1 -1
- data/ra10ke.gemspec +2 -2
- data/spec/fixtures/Puppetfile +4 -0
- data/spec/ra10ke/puppetfile_parser_spec.rb +6 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3ddc7e78ba94bf27f04cbe9774ca834c2db7cf4039eea7733beca491f7a46d1
|
4
|
+
data.tar.gz: 17a62542c1afc9ce72db42c737469de497644a0e7c63fa773bf8826589d82927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c0f6088fddea172f01e49fa274c9936e3cc65471468e9c17911e7cbe8d14cceb90adf3e1c4a49962f754ca63eba71bd26aaa5292c0a83d040de4cc4cecce0ef
|
7
|
+
data.tar.gz: 8f2aca32d31ebdee6b704f7579d055f7f093fbedf6ccf050c5b3a225fe3947d5d782728e1f61a2e706537e2eb115c6e56c8b5adfec17580bf8752fcc0cddcadc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,23 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
=========
|
3
3
|
|
4
|
+
0.6.1
|
5
|
+
-----
|
6
|
+
|
7
|
+
2019-08-17
|
8
|
+
|
9
|
+
Closed Pull Requests:
|
10
|
+
|
11
|
+
* [#40](https://github.com/voxpupuli/ra10ke/pull/40) - Fix a fault in the mod handling behaviour
|
12
|
+
|
13
|
+
Closed Issues:
|
14
|
+
|
15
|
+
* [#25](https://github.com/voxpupuli/ra10ke/issues/25) - Consider making r10k:install have a default path of '.'
|
16
|
+
|
17
|
+
Many thanks to the following contributors for submitting PRs:
|
18
|
+
|
19
|
+
* [Alexander Olofsson](https://github.com/ananace)
|
20
|
+
|
4
21
|
0.6.0
|
5
22
|
-----
|
6
23
|
|
data/README.md
CHANGED
@@ -79,6 +79,15 @@ runs faster.
|
|
79
79
|
|
80
80
|
Reads the Puppetfile in the current directory and installs them under the `path` provided as an argument.
|
81
81
|
|
82
|
+
#### Limitations
|
83
|
+
|
84
|
+
* It works only with modules from the [Forge](https://forge.puppetlabs.com), and Git.
|
85
|
+
SVN modules will be ignored.
|
86
|
+
* Git support is explicitly SHA Ref and Tag supported. If tag is used it must follow
|
87
|
+
`v0.0.0` convention, other wise it will be ignored.
|
88
|
+
* The version has to be specified explicitly. If it is omitted, or it is
|
89
|
+
`:latest`, the module will be ignored.
|
90
|
+
|
82
91
|
### r10k:validate[path]
|
83
92
|
The validate rake task will determine if the url is a valid url by connecting
|
84
93
|
to the repository and verififying it actually exists and can be accessed.
|
@@ -114,11 +123,3 @@ gitlab | https://github.com/vshn/puppet-gitlab | 00397b86dfb3487d9df76
|
|
114
123
|
👍👍 Puppetfile looks good.👍👍
|
115
124
|
```
|
116
125
|
|
117
|
-
#### Limitations
|
118
|
-
|
119
|
-
* It works only with modules from the [Forge](https://forge.puppetlabs.com), and Git.
|
120
|
-
SVN modules will be ignored.
|
121
|
-
* Git support is explicitly SHA Ref and Tag supported. If tag is used it must follow
|
122
|
-
`v0.0.0` convention, other wise it will be ignored.
|
123
|
-
* The version has to be specified explicitly. If it is omitted, or it is
|
124
|
-
`:latest`, the module will be ignored.
|
@@ -23,8 +23,8 @@ module Ra10ke
|
|
23
23
|
|
24
24
|
all_lines = File.read(puppetfile).lines.map(&:strip_comment)
|
25
25
|
# remove comments from all the lines
|
26
|
-
lines_without_comments = all_lines.reject { |line| line.match(/#.*\n/) }.join("\n")
|
27
|
-
lines_without_comments.split(
|
26
|
+
lines_without_comments = all_lines.reject { |line| line.match(/#.*\n/) }.join("\n")
|
27
|
+
lines_without_comments.split(/^mod/).map do |line|
|
28
28
|
next nil if line =~ /^forge/
|
29
29
|
next nil if line.empty?
|
30
30
|
|
data/lib/ra10ke/version.rb
CHANGED
data/ra10ke.gemspec
CHANGED
@@ -5,8 +5,8 @@ require 'ra10ke/version'
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "ra10ke"
|
7
7
|
spec.version = Ra10ke::VERSION
|
8
|
-
spec.authors = ["Theo Chatzimichos"]
|
9
|
-
spec.email = ["
|
8
|
+
spec.authors = ["Theo Chatzimichos", "Vox Pupuli"]
|
9
|
+
spec.email = ["voxpupuli@groups.io"]
|
10
10
|
spec.description = %q{R10K and Puppetfile rake tasks}
|
11
11
|
spec.summary = %q{Syntax check for the Puppetfile, check for outdated installed puppet modules}
|
12
12
|
spec.homepage = "https://github.com/voxpupuli/ra10ke"
|
data/spec/fixtures/Puppetfile
CHANGED
@@ -45,6 +45,9 @@ RSpec.describe 'Ra10ke::PuppetfileParser' do
|
|
45
45
|
:namespace=>nil},
|
46
46
|
{:args=>{:branch=>"prod", :git=>"https://github.com/cudgel/splunk.git"},
|
47
47
|
:name=>"splunk",
|
48
|
+
:namespace=>nil},
|
49
|
+
{:args=>{:branch=>"master", :git=>"https://github.com/voxpupuli/puppet-module.git"},
|
50
|
+
:name=>"puppet",
|
48
51
|
:namespace=>nil}]
|
49
52
|
end
|
50
53
|
|
@@ -85,6 +88,9 @@ RSpec.describe 'Ra10ke::PuppetfileParser' do
|
|
85
88
|
:namespace=>nil},
|
86
89
|
{:args=>{:branch=>"prod", :git=>"https://github.com/cudgel/splunk.git"},
|
87
90
|
:name=>"splunk",
|
91
|
+
:namespace=>nil},
|
92
|
+
{:args=>{:branch=>"master", :git=>"https://github.com/voxpupuli/puppet-module.git"},
|
93
|
+
:name=>"puppet",
|
88
94
|
:namespace=>nil}]
|
89
95
|
expect(git_modules(puppetfile)).to eq(expected)
|
90
96
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ra10ke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Chatzimichos
|
8
|
+
- Vox Pupuli
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
12
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
@@ -124,7 +125,7 @@ dependencies:
|
|
124
125
|
version: '3.6'
|
125
126
|
description: R10K and Puppetfile rake tasks
|
126
127
|
email:
|
127
|
-
-
|
128
|
+
- voxpupuli@groups.io
|
128
129
|
executables: []
|
129
130
|
extensions: []
|
130
131
|
extra_rdoc_files: []
|