Sha256: fa5abe545b6bb1736538c960b53eb9d3b34f8701ffc9a57339e94897ece11bb2
Contents?: true
Size: 777 Bytes
Versions: 5
Compression:
Stored size: 777 Bytes
Contents
require 'chef/knife' class Chef class Knife class Kitchen < Knife include FileUtils banner "knife kitchen NAME" def run name = @name_args.first mkdir name %w(nodes roles data_bags site-cookbooks cookbooks).each do |dir| mkdir name + "/#{dir}" touch name + "/#{dir}/.gitkeep" end File.open(name + "/solo.rb", 'w') do |f| f << <<-RUBY.gsub(/^ {12}/, '') file_cache_path "/tmp/chef-solo" data_bag_path "/tmp/chef-solo/data_bags" cookbook_path [ "/tmp/chef-solo/site-cookbooks", "/tmp/chef-solo/cookbooks" ] role_path "/tmp/chef-solo/roles" RUBY end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems