knife-cookbook-cleanup 0.1.1pre → 0.1.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/Gemfile.lock +1 -1
- data/lib/chef/knife/cookbook_cleanup.rb +4 -2
- data/lib/knife-cookbook-cleanup/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: 569ad62f0371e5d44a951f1e8ec37d89f57368af
|
|
4
|
+
data.tar.gz: af4835817e371c713fbfc968590258c8c839afe8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4166d3d0ad30d059b8cd1000cad3dccaeb436560b06442128fabf2ecd2132c87eb4dab77fcdbd1ca0a147bc1f22b648a25e11a2e7df4d6fba90f77fcd712bba3
|
|
7
|
+
data.tar.gz: 1f8e28ecba97cad3030e81391ed606688cc0a3ee09e923ffb65ca49ee84ddb98ee31ad56c7c5612a9cc39a3785e08a87315012d79986f36569ac2d70cf8c76a3
|
data/Gemfile.lock
CHANGED
|
@@ -59,12 +59,14 @@ class Chef
|
|
|
59
59
|
ui.msg ""
|
|
60
60
|
ui.msg ui.output(drop_cookbooks)
|
|
61
61
|
ui.msg ""
|
|
62
|
-
|
|
62
|
+
unless config[:yes]
|
|
63
|
+
ui.confirm("Do you really want to delete these cookbooks? (Y/N) ", false)
|
|
64
|
+
end
|
|
63
65
|
|
|
64
66
|
drop_cookbooks.each do |cookbook, versions|
|
|
65
67
|
versions.each do |version|
|
|
66
68
|
rest.delete_rest("cookbooks/#{cookbook}/#{version}")
|
|
67
|
-
ui.info("Deleted cookbook
|
|
69
|
+
ui.info("Deleted cookbook #{cookbook.ljust(25)} [#{version}]")
|
|
68
70
|
end
|
|
69
71
|
end
|
|
70
72
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife-cookbook-cleanup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anthony Goddard
|
|
@@ -86,9 +86,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
86
86
|
version: '0'
|
|
87
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
requirements:
|
|
89
|
-
- - "
|
|
89
|
+
- - ">="
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
|
-
version:
|
|
91
|
+
version: '0'
|
|
92
92
|
requirements: []
|
|
93
93
|
rubyforge_project:
|
|
94
94
|
rubygems_version: 2.2.0
|