Last active
December 15, 2015 22:49
-
-
Save dagi3d/5335501 to your computer and use it in GitHub Desktop.
This file contains 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
watch('cookbooks/.*/.*') do |file| | |
puts file | |
cookbook = file[0].split("/")[1] | |
system("knife cookbook upload #{cookbook}") | |
end |
This file contains 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
env = ENV['KNIFE_ENV'] || "development" | |
knife_file = File.join(File.dirname(__FILE__), "knife.#{env}.rb") | |
Chef::Config.from_file knife_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment