Permalink
Browse files

Properly testing for global definitions

  • Loading branch information...
1 parent 9131eb9 commit d3dd2c7d003ac3d203ffc724143d1a20632bd1aa @temujin9 temujin9 committed Nov 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 config/Berksfile.inc.rb
View
@@ -1,7 +1,7 @@
-USE_LOCAL = false if USE_LOCAL.nil?
-LOCAL_PATH = "vendor" if LOCAL_PATH.nil?
-OPSCODE_REPO = 'infochimps-labs/opscode_cookbooks' if OPSCODE_REPO.nil?
-PANTRY_REPO = 'infochimps-labs/ironfan-pantry' if PANTRY_REPO.nil?
+USE_LOCAL = false unless defined? USE_LOCAL
+LOCAL_PATH = "vendor" unless defined? LOCAL_PATH
+OPSCODE_REPO = 'infochimps-labs/opscode_cookbooks' unless defined? OPSCODE_REPO
+PANTRY_REPO = 'infochimps-labs/ironfan-pantry' unless defined? PANTRY_REPO
def github_cookbook(name, repo, rel)
if USE_LOCAL

0 comments on commit d3dd2c7

Please sign in to comment.