knife-supermarket 0.2.4 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 730fb00dec79b044cd5bc239ad8d090536e6a098
4
- data.tar.gz: 46dca0e39defb5852b7574be500ab792c6a2493a
3
+ metadata.gz: 26a366db0e44969ef5cf740c260cbccf2b20e59b
4
+ data.tar.gz: 3c5702c849761a4bdc34429b309deb5ffe1c1017
5
5
  SHA512:
6
- metadata.gz: a485fc218e7f42f8f59cefeb94023d1deca8011bca0c0df2f10897c1e394afc0954cb4b45b5f04d07125826fbd96c51b478d3830f96866196f105fb19777e92d
7
- data.tar.gz: b14337171118721dfb06bc037815b7363038819ae8d4080572f8bb75ba3265db93459a0894959d7548173610b513ca0f7a3ec1d201148f42d3c631c88b3562fb
6
+ metadata.gz: 3cd4a50b0ee46b54b3ff809e7b7c8f265b951ee93d1b9ea25bf7e496664070916de32c444b82b57392843666cba843d8e805082a0595182fc17bc2d3d26e53a7
7
+ data.tar.gz: f2f9717508eaa6e66f131dd4d9ff460e34b3542f86d7d4d88913afc8a2e793e5ee3faadce4780479d9cfd3d7e4a39098a4d011ca25bd8b0c10f78382fe93d8ed
@@ -1,3 +1,17 @@
1
+ ## v0.3.0
2
+ * DEPRECATED GEM: The `knife-supermarket` gem has been deprecated.
3
+ `knife supermarket` subcommands have been moved to core Chef as of version
4
+ 12.12. For older versions of Chef, use `'knife-supermarket', '< 0.3.0'`
5
+
6
+ ## v0.2.4
7
+ * Fix REST calls missed in v0.2.3 [chef/knife-supermarket#29]
8
+
9
+ ## v0.2.3
10
+ * Fix REST calls to align with `knife cookbook site` [chef/knife-supermarket#28]
11
+
12
+ ## v0.2.2
13
+ * Fix the inclusion of dependencies and options from parent classes of commands [chef/knife-supermarket#21]
14
+
1
15
  ## v0.2.1
2
16
  * Pass empty string for category
3
17
 
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # knife-supermarket
2
2
 
3
+ This Plugin is DEPRECATED: this feature has been moved into core Chef in
4
+ versions greater than 12.11.18 and no longer requires a separate gem
5
+ installation.
6
+
3
7
  This Knife Plugin is an easy way to switch between various supermarkets, the
4
8
  biggest of them being the Chef Community Site, located at
5
9
  [https://supermarket.chef.io](https://supermarket.chef.io). The `knife
@@ -35,6 +35,13 @@ class Chef
35
35
  :default => 'https://supermarket.chef.io',
36
36
  :proc => Proc.new { |supermarket| Chef::Config[:knife][:supermarket_site] = supermarket }
37
37
 
38
+ def run
39
+ Chef::Log.deprecation <<EOF
40
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
41
+ EOF
42
+ super
43
+ end
44
+
38
45
  def cookbooks_api_url
39
46
  "#{config[:supermarket_site]}/api/v1/cookbooks"
40
47
  end
@@ -48,6 +48,13 @@ class Chef
48
48
  downloader
49
49
  end
50
50
 
51
+ def run
52
+ Chef::Log.deprecation <<EOF
53
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
54
+ EOF
55
+ super
56
+ end
57
+
51
58
  end
52
59
  end
53
60
  end
@@ -48,6 +48,13 @@ class Chef
48
48
  cookbook_collection
49
49
  end
50
50
  end
51
+
52
+ def run
53
+ Chef::Log.deprecation <<EOF
54
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
55
+ EOF
56
+ super
57
+ end
51
58
  end
52
59
  end
53
60
  end
@@ -34,6 +34,9 @@ class Chef
34
34
 
35
35
  def run
36
36
  output(search_cookbook(name_args[0]))
37
+ Chef::Log.deprecation <<EOF
38
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
39
+ EOF
37
40
  end
38
41
 
39
42
  def search_cookbook(query, items=10, start=0, cookbook_collection={})
@@ -50,6 +50,9 @@ class Chef
50
50
  # parameter before invoking Chef::Knife::CookbookSiteShare#run ...
51
51
  # Tested on 11.16.4 and 12.0.3.
52
52
  def run
53
+ Chef::Log.deprecation <<EOF
54
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
55
+ EOF
53
56
  @name_args << "" if @name_args.length == 1
54
57
  super
55
58
  end
@@ -57,6 +57,13 @@ class Chef
57
57
  cookbook_collection
58
58
  end
59
59
  end
60
+
61
+ def run
62
+ Chef::Log.deprecation <<EOF
63
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
64
+ EOF
65
+ super
66
+ end
60
67
  end
61
68
  end
62
69
  end
@@ -37,6 +37,10 @@ class Chef
37
37
  :proc => Proc.new { |supermarket| Chef::Config[:knife][:supermarket_site] = supermarket }
38
38
 
39
39
  def run
40
+ Chef::Log.deprecation <<EOF
41
+ The `knife-supermarket` gem has been deprecated and the `knife supermarket` subcommands have been moved in to core Chef. Please ensure you have Chef 12.12 or newer, and then uninstall this gem.
42
+ EOF
43
+
40
44
  @cookbook_name = @name_args[0]
41
45
  if @cookbook_name.nil?
42
46
  show_usage
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Supermarket
3
- VERSION = '0.2.4'
3
+ VERSION = '0.3.0'
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-supermarket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Webber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-04 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef