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
require 'chef/chef_fs/knife' | |
class Chef | |
class Knife | |
class Deps < Chef::ChefFS::Knife | |
banner "knife deps PATTERN1 [PATTERNn]" | |
category "path-based" | |
deps do |
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
require 'chef/knife/bootstrap' | |
class MyKnife | |
class MyCLI | |
include Mixlib::CLI | |
end | |
def deps(knife_config_path, cookbooks) | |
Dir.chdir(File.dirname(knife_config_path)) | |
Chef::Config.from_file(knife_config_path) |
NewerOlder