knife-supermarket 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 664be1faba55f9a4fc5e7470aad3f5255fbad864
|
4
|
+
data.tar.gz: 064da14ead80ae301204ec420a6db57911aeff65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a2257ce3511909d32c7007ef91c5b2073c9e284fb7d72c0e542f8b4a6a0d05384043180665e9f4935bcf6b8e629f9495653e7262e8bbd131dade69315052ee3
|
7
|
+
data.tar.gz: 1ade202fa76908aa37d1478228d2547cfce40e256f7fc8deaab196bb4dcac8807bd5d9b911a6bf229f30ea3cd4f755313e450dbc819c1413153a186b0cf57969
|
@@ -37,7 +37,7 @@ class Chef
|
|
37
37
|
|
38
38
|
def get_cookbook_list(items=10, start=0, cookbook_collection={})
|
39
39
|
cookbooks_url = "#{config[:supermarket_site]}/api/v1/cookbooks?items=#{items}&start=#{start}"
|
40
|
-
cr = noauth_rest.
|
40
|
+
cr = noauth_rest.get(cookbooks_url)
|
41
41
|
cr["items"].each do |cookbook|
|
42
42
|
cookbook_collection[cookbook["cookbook_name"]] = cookbook
|
43
43
|
end
|
@@ -38,7 +38,7 @@ class Chef
|
|
38
38
|
|
39
39
|
def search_cookbook(query, items=10, start=0, cookbook_collection={})
|
40
40
|
cookbooks_url = "#{config[:supermarket_site]}/api/v1/search?q=#{query}&items=#{items}&start=#{start}"
|
41
|
-
cr = noauth_rest.
|
41
|
+
cr = noauth_rest.get(cookbooks_url)
|
42
42
|
cr["items"].each do |cookbook|
|
43
43
|
cookbook_collection[cookbook["cookbook_name"]] = cookbook
|
44
44
|
end
|
@@ -52,8 +52,3 @@ class Chef
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
@@ -46,7 +46,7 @@ class Chef
|
|
46
46
|
|
47
47
|
def get_cookbook_list(items=10, start=0, cookbook_collection={})
|
48
48
|
cookbooks_url = "#{config[:supermarket_site]}/api/v1/cookbooks?items=#{items}&start=#{start}"
|
49
|
-
cr = noauth_rest.
|
49
|
+
cr = noauth_rest.get(cookbooks_url)
|
50
50
|
cr["items"].each do |cookbook|
|
51
51
|
cookbook_collection[cookbook["cookbook_name"]] = cookbook
|
52
52
|
end
|
@@ -47,7 +47,7 @@ class Chef
|
|
47
47
|
confirm "Do you really want to unshare the cookbook #{@cookbook_name}"
|
48
48
|
|
49
49
|
begin
|
50
|
-
rest.
|
50
|
+
rest.delete "#{config[:supermarket_site]}/api/v1/cookbooks/#{@name_args[0]}"
|
51
51
|
rescue Net::HTTPServerException => e
|
52
52
|
raise e unless e.message =~ /Forbidden/
|
53
53
|
ui.error "Forbidden: You must be the maintainer of #{@cookbook_name} to unshare it."
|
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
|
+
version: 0.2.3
|
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-
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|