This will allow knife plugin authors to include custom bootstrap templates when they ship the plugins as Ruby gems.
Bootstrap Template Lookup
"can't convert Array into String" in dirname
knife bootstrap should check for a bootstrap template before trying to use it.
Fix can be pulled from here:
This patch has been merged to opscode/master and will be included in the next release. Thank you for contributing to Chef!
Reopening for fix version change.
0.10.2 was a security release, 0.10.4 is the next maintenance release.
Bulk edit: this ticket should have been previously merged for 0.10.2, but will be released in 0.10.4
The original fix doesn't always seem to work (I don't understand how it ever could). The Gem#find_files, returns an array, which, when evaluated in the block in File#exists?, causes the a whole method to blow up. See here:
Actually the fix is much easier than that...just need to flatten the boostrap_files array:
This fix already exists in knife-windows:
reopening per comments above.
Updated fix can be pulled from:
I even wrote a spec this time to catch this in the future!
this has been merged:
Note that the final fix is in 0.10.6 and this was broken in 0.10.4