lib/stove/plugins/community.rb in stove-2.0.0 vs lib/stove/plugins/community.rb in stove-3.0.0
- old
+ new
@@ -1,26 +1,22 @@
module Stove
class Plugin::Community < Plugin::Base
id 'community'
description 'Publish the release to the Chef community site'
- validate(:configuration) do
- Config.has_key?(:community)
- end
-
validate(:username) do
- Config[:community].has_key?(:username)
+ Config.username
end
validate(:key) do
- Config[:community].has_key?(:key)
+ Config.key
end
validate(:category) do
!cookbook.category.nil?
end
- after(:upload, 'Publishing the release to the Chef community site') do
+ run('Publishing the release to the Chef community site') do
Community.upload(cookbook)
end
end
end