websterclay / knife-github-cookbooks

A knife plugin facilitating installing, updating, and tracking Chef cookbooks found on Github.
Apache License 2.0
220 stars 35 forks source link

Use absolute path to cookbooks directory #14

Open sumbach opened 13 years ago

sumbach commented 13 years ago

Proposed fix for #8: Use File.expand_path on cookbook path so it's guaranteed to be an absolute path. This allows users to specify a relative path in their chef config or on the command line:

knife cookbook github install --cookbook-path cookbooks cookbooks/yum
sumbach commented 13 years ago

Based on the following Chef ticket, there may soon be a standard way of handling relative paths in Chef: http://tickets.opscode.com/browse/CHEF-2577