Merge "Allow compatibility with Berkshelf 2.x and 3.x"
This commit is contained in:
commit
2995d11779
@ -130,7 +130,12 @@
|
|||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: |
|
||||||
mkdir -p .cookbooks
|
mkdir -p .cookbooks
|
||||||
|
grep -E .*berkshelf.*3\.\d*\.\d*.* Gemfile
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec berks vendor .cookbooks
|
||||||
|
else
|
||||||
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks
|
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks
|
||||||
|
fi
|
||||||
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
||||||
if [ -z $COOKBOOK ]; then
|
if [ -z $COOKBOOK ]; then
|
||||||
echo "Cookbook name not defined in metadata.rb"
|
echo "Cookbook name not defined in metadata.rb"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user