Skip to content

Instantly share code, notes, and snippets.

View marvinthepa's full-sized avatar

Martin Sander marvinthepa

  • Europe
View GitHub Profile
@mattray
mattray / parse_metadata.rb
Created September 19, 2012 20:24 — forked from mlafeldt/README.md
Parse cookbook's metadata
#!/usr/bin/env ruby
require 'chef/cookbook/metadata'
metadata_file = ARGV.first || 'metadata.rb'
metadata = Chef::Cookbook::Metadata.new
metadata.from_file(metadata_file)
puts "#{metadata.name} #{metadata.version}"