stove 6.1.1 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stove/cli.rb +0 -15
- data/lib/stove/packager.rb +1 -1
- data/lib/stove/supermarket.rb +0 -17
- data/lib/stove/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d41cb20196130bd7e01b028e7dd7eb5cd72c5d8ed23f26b67acaa1a323c6b2f
|
4
|
+
data.tar.gz: ba5a548d6b5dc9895595535281346816d604178d19c45ad039024c21854ef0a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59ab257fae548ed7ae06ca6dbf10fa9225b9144bcef7085bb0945c08fc16b3861ea8ef978fb1cbfa32858f2a8ba377514c8baf726da17f4036f9eadb7521267
|
7
|
+
data.tar.gz: 65c28443fd4c73ef427261574ba8c1a15b3f50457fd277d6dc54384b897934bfb10e703355a3ffa28be86eb8b51580d917a38759d1e83d80a9f882b67e1444b5
|
data/lib/stove/cli.rb
CHANGED
@@ -51,21 +51,6 @@ module Stove
|
|
51
51
|
log.info("Options: #{options.inspect}")
|
52
52
|
log.info("ARGV: #{@argv.inspect}")
|
53
53
|
|
54
|
-
# Yank command
|
55
|
-
if @argv.first == 'yank'
|
56
|
-
name = @argv[1] || Cookbook.new(options[:path]).name
|
57
|
-
|
58
|
-
if Supermarket.yank(name)
|
59
|
-
@stdout.puts "Successfully yanked #{name}!"
|
60
|
-
@kernel.exit(0)
|
61
|
-
else
|
62
|
-
@stderr.puts "I could not find a cookbook named #{name}!"
|
63
|
-
@kernel.exit(1)
|
64
|
-
end
|
65
|
-
|
66
|
-
return
|
67
|
-
end
|
68
|
-
|
69
54
|
# Make a new cookbook object - this will raise an exception if there is
|
70
55
|
# no cookbook at the given path
|
71
56
|
cookbook = Cookbook.new(options[:path])
|
data/lib/stove/packager.rb
CHANGED
data/lib/stove/supermarket.rb
CHANGED
@@ -62,23 +62,6 @@ module Stove
|
|
62
62
|
})
|
63
63
|
end
|
64
64
|
|
65
|
-
#
|
66
|
-
# Delete the given cookbook from the supermarket.
|
67
|
-
#
|
68
|
-
# @param [String] name
|
69
|
-
# the name of the cookbook to delete
|
70
|
-
#
|
71
|
-
# @return [true, false]
|
72
|
-
# true if the cookbook was deleted, false otherwise
|
73
|
-
#
|
74
|
-
def yank(name)
|
75
|
-
connection.delete("/cookbooks/#{name}")
|
76
|
-
true
|
77
|
-
rescue ChefAPI::Error::HTTPBadRequest,
|
78
|
-
ChefAPI::Error::HTTPNotFound,
|
79
|
-
false
|
80
|
-
end
|
81
|
-
|
82
65
|
private
|
83
66
|
|
84
67
|
#
|
data/lib/stove/version.rb
CHANGED