jonlives / knife-spork

A workflow plugin to help many devs work with cookbooks and environments at once
Other
335 stars 97 forks source link

Cater for roles in subdirs when checking filename against role name #194

Closed benburry closed 9 years ago

benburry commented 9 years ago

Previously, the path components were removed before loading the role file when checking the rolename inside the role. This would break if your role file were in a subdirectory of the roles dir

The fix is to use the whole of the arg variable as the path to the role file