Details
Description
I'm thinking of an enhancement for knife exec that would provide it a default directory to look for scripts in so you wouldn't have to provide the full path to your exec scripts. My use case is that I'd like to be in any dir on my workstation and be able to run knife exec scripts from either of 2 directories, one where I have my personal scripts and another where I have team scripts checked out from the VCS.
Attempted to implement this. It seems to work but comments are welcome. Pull request sent:
https://github.com/opscode/chef/pull/183
Details:
This adds a key called script_path in the chef config that takes an array of paths to look for knife exec scripts. It defaults to an empty array to mimic existing behavior. If you set a path in your knife.rb, it'll be searched in cases where the specified script isn't found in the current directory. Has debug logging. It doesn't support ~ expansion in the script paths, which is true of other paths in the knife config (I think).