bryanwb / chef-ark

An archive unpacker and installer
59 stars 20 forks source link

path fixes #3

Closed dennybaa closed 12 years ago

dennybaa commented 12 years ago

Hey Bryan,

I've looked into your cookbook and yeah it's awesome. In my opinion your logic with paths doesn't work quite good or isn't fully implemented yet... So I made some changes regarding path logic. Namely there's now choice between default recipe attributes and resource attributes. For example, to get the root_prefix first we try attribute if it explicitly set in the resource block if not we try default value from run_context.node (say defined via node attributes). What do think of it? Is it good to the way like this? Also have look at one regex in the code...

Regards, Denis