Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
don’t bother with cookbook versions since it breaks most of the time
Browse files Browse the repository at this point in the history
  • Loading branch information
dwradcliffe committed Aug 29, 2014
1 parent b443931 commit 0824aff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Expand Up @@ -221,7 +221,7 @@ GRAPH
rubygems-cache (0.0.1)
memcached (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-chef (0.0.25)
rubygems-chef (0.0.28)
chef-client (>= 0.0.0)
chef-vault (>= 0.0.0)
omnibus_updater (>= 0.0.0)
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/rubygems-chef/metadata.rb
@@ -1,7 +1,7 @@
name 'rubygems-chef'
maintainer 'RubyGems.org ops team'

version '0.0.25'
version '0.0.28'

depends 'chef-client'
depends 'chef-vault'
Expand Down
8 changes: 0 additions & 8 deletions cookbooks/rubygems-chef/templates/default/slack.rb
Expand Up @@ -72,11 +72,6 @@ def formatted_gist
].join("\n\n")
end

def formatted_cookbooks
cookbooks = run_context.cookbook_collection
cookbooks.keys.map { |x| cookbooks[x].name.to_s + " " + cookbooks[x].version }.join("\n")
end

def create_gist
begin
Timeout::timeout(10) do
Expand All @@ -90,9 +85,6 @@ def create_gist
"files" => {
"chef_exception.txt" => {
"content" => formatted_gist
},
"chef_cookbooks.txt" => {
"content" => formatted_cookbooks
}
}
}.to_json
Expand Down

0 comments on commit 0824aff

Please sign in to comment.