Created
July 21, 2013 02:53
-
-
Save nabeken/6047287 to your computer and use it in GitHub Desktop.
Put ~/.chef/plugins/knife then you can load json from nodes/#{node_name}/node.json in knife solo cook.
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
require 'chef/knife' | |
module KnifeSolo | |
module NodeConfigCommand | |
def node_config | |
Pathname.new(@name_args[1] || "#{nodes_path}/#{node_name}/node.json") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment