Sha256: cc2d0492e01f003654d840556189d44604798d5cc3628714364b92658ae2536f
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
module Stove class Action::Upload < Action::Base id 'upload' description 'Upload the cookbook to the community site' validate(:configuration) do Config.has_key?(:community) end validate(:username) do Config[:community].has_key?(:username) end validate(:key) do Config[:community].has_key?(:key) end validate(:category) do !cookbook.category.nil? end def run log.info('Uploading to the Chef community site') Community.upload(cookbook) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stove-2.0.0.beta.1 | lib/stove/actions/upload.rb |