in lib/between_meals/knife.rb [116:134]
def berks_cookbook_upload(cookbooks)
if @berks_config
berks_config = '--config=' + @berks_config
end
if cookbooks.any?
@cookbook_dirs.each do |path|
cookbooks.each do |cb|
next unless File.exist?("#{path}/#{cb}")
@logger.warn("Running berkshelf on cookbook: #{cb}")
exec!("cd #{path}/#{cb} && #{@berks} install #{berks_config} && " +
"#{@berks} upload #{berks_config}", @logger)
end
end
end
end