From 7f4a1043fb9403f1d074137ea1f2b1a03bc916b5 Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Thu, 17 Apr 2014 11:47:23 -0600 Subject: [PATCH] Added conditional source line the to the berksfile --- Berksfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Berksfile b/Berksfile index 822ed85..2710026 100644 --- a/Berksfile +++ b/Berksfile @@ -1,4 +1,8 @@ -source 'https://api.berkshelf.com' +require 'rubygems' + +if Gem::Specification::find_by_name('berkshelf').version.to_s[0] == '3' + source 'https://api.berkshelf.com' +end metadata cookbook 'mon_api', git: 'git@git.hpcloud.net:mon/cookbooks-mon_api'