knife-tidy 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/chef/knife/tidy_server_report.rb +10 -6
- data/lib/knife-tidy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc1d727190b5d98c1020db4370cb85525785081
|
4
|
+
data.tar.gz: 3da9ec48377cf236c391c97494863e0cf20ee15d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6af0d2b285e86999607a52a4daa64cd8969d0961b4e0902cf4f1e43907b73960402dc7b67b26cec8b5fb0eebe715be33b295952ec184c2d30fab1cee36a2978
|
7
|
+
data.tar.gz: 83239068fd7d85f677fe4faf9e007b29174d3e4042cd6c433589a84e36a5efde758b24acf2ea651ca0a9ce22be168fda6f8987b02c54bbf7cf4c0c0ae0385cd0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [0.3.5](https://github.com/chef-customers/knife-tidy/tree/0.3.5) (2017-09-20)
|
4
|
+
[Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.4...0.3.5)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Catch pins with no cookbooks [\#27](https://github.com/chef-customers/knife-tidy/pull/27) ([nsdavidson](https://github.com/nsdavidson))
|
9
|
+
|
3
10
|
## [0.3.4](https://github.com/chef-customers/knife-tidy/tree/0.3.4) (2017-09-16)
|
4
11
|
[Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.3...0.3.4)
|
5
12
|
|
@@ -156,13 +156,17 @@ class Chef
|
|
156
156
|
end
|
157
157
|
|
158
158
|
def check_cookbook_list(cb_list, cb, version)
|
159
|
-
cb_list[cb]
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
159
|
+
if cb_list[cb]
|
160
|
+
cb_list[cb].each do |v|
|
161
|
+
if Gem::Dependency.new('', version).match?('', v)
|
162
|
+
Chef::Log.debug("Pin of #{cb} can be satisfied by #{v}, adding to used list")
|
163
|
+
return [v]
|
164
|
+
else
|
165
|
+
Chef::Log.debug("Pin of #{cb} version #{version} not satisfied by #{v}")
|
166
|
+
end
|
165
167
|
end
|
168
|
+
else
|
169
|
+
Chef::Log.info("Cookbook #{cb} version #{version} is pinned in an environment, but does not exist on the server in this org.")
|
166
170
|
end
|
167
171
|
return nil
|
168
172
|
end
|
data/lib/knife-tidy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-tidy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.6.
|
147
|
+
rubygems_version: 2.6.13
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Report on stale Chef Server nodes and cookbooks and clean up data integrity
|