2013-10-08 31 views
0

我的自定義食譜存儲在私人github回購站中。當他們添加到一個Berkshelf項目,他們被添加到.berkshelf/cookbooks作爲custom-cookbook-commit-number而不是custom-cookbook-version-number來自github食譜的Berkshelf目錄名稱

我的github回購有標籤的版本。 「發佈」包含列出的所有版本標籤。

我需要改變什麼才能讓食譜變成
.berkshelf/cookbooks/custom-cookbook-version-number

回答

3

使用路徑位置,而不是git的位置在您的Berksfile請:

cookbook "artifact", path: "/Users/reset/code/artifact-cookbook" 

然後,你需要從gitrepo克隆你的私人食譜,並確保他們是最新的。

+0

使用path指令時,cookbook不會添加到我的Berksfile目錄中。那是對的嗎? – csi

+0

正確。從[路徑位置](http://berkshelf.com/#path_location)檢出詳細信息 – shawnzhu