Created
July 16, 2013 06:13
-
-
Save lancelakey/6006191 to your computer and use it in GitHub Desktop.
Upload all Berkshelf dependencies in all subdirectories to a Chef server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pathname' | |
require 'pp' | |
Dir.glob("**/Berksfile") do |bf| | |
bd = Pathname.new("#{bf}").dirname.to_path | |
result = %x( cd #{bd} ; berks upload ) | |
pp result | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment