Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
自分のアプリケーションから Chef Solo を呼び出す
# Usage: ruby chef_solo_in_your_application.rb
require 'rubygems'
require 'chef'
Chef::Config[:solo] = true
Chef::Config[:file_cache_path] = '/path/to/chef-repo'
Chef::Config[:cookbook_path] = ['/path/to/chef-repo/cookbooks']
@chef_solo = Chef::Client.new(JSON.load File.read ARGV.first)
@chef_solo.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.