Skip to content

Commit

Permalink
allow for generic cookbook paths in cache lib
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith committed Mar 23, 2016
1 parent af50ddd commit 63bf41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/chefdepartie/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def to_key(path)
path.gsub(/.*data_bags/, 'data').gsub('.json', '')
when /\/roles\//
File.join('roles', path.gsub(/.*roles\//, '').gsub('/', '--').gsub('.rb', ''))
when /cookbooks\//
path.gsub(/.*cookbooks/, 'cookbooks')
when /cookbooks[^\/]*\//
path.gsub(/.*cookbooks([^\/]*)/, 'cookbooks\1')
end
end
end
Expand Down

0 comments on commit 63bf41b

Please sign in to comment.