knife-supermarket 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/chef/knife/supermarket_search.rb +4 -0
- data/lib/knife-supermarket/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebbcbca8c8ed6d7cc61f60c8965d998e339331b2
|
4
|
+
data.tar.gz: 9c58f8594dbce990143c726ff588d99d8c47f225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95f545aced83cadbf4ebe118839b56a604ba3b7ffcf2d17d32c358c96194aa67c5c8e49dd43996e2e9fcfc143038be65b204ff6e958225ec99c5ed3354bf9914
|
7
|
+
data.tar.gz: 6d7c913d37dacee113c65ade7d55427fb1f7cc9dbe7c77490100e726c3abedb6a6bc26989f0201648edc8cef86847d99cd094b445e0b353f0edad30617c5f885
|
data/CHANGELOG.md
ADDED
@@ -32,6 +32,10 @@ class Chef
|
|
32
32
|
:default => 'supermarket-staging.getchef.com',
|
33
33
|
:proc => Proc.new { |supermarket| Chef::Config[:knife][:supermarket_site] = supermarket }
|
34
34
|
|
35
|
+
def run
|
36
|
+
output(search_cookbook(name_args[0]))
|
37
|
+
end
|
38
|
+
|
35
39
|
def search_cookbook(query, items=10, start=0, cookbook_collection={})
|
36
40
|
cookbooks_url = "http://#{config[:supermarket_site]}/api/v1/search?q=#{query}&items=#{items}&start=#{start}"
|
37
41
|
cr = noauth_rest.get_rest(cookbooks_url)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-supermarket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Webber
|
@@ -31,6 +31,7 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- ".gitignore"
|
34
|
+
- CHANGELOG.md
|
34
35
|
- LICENSE
|
35
36
|
- README.md
|
36
37
|
- Rakefile
|