Permalink
Browse files

Berksfile.inc.rb: fixing defaulting of USE_LOCAL

  • Loading branch information...
1 parent e625167 commit 954fbed6e9a56c18a00a7fa5743156a9c0c596d0 @temujin9 temujin9 committed Feb 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/Berksfile.inc.rb
View
@@ -13,13 +13,13 @@
ParseConfig.new(conf_file).params.each_pair {|k,v| ENV[k] = v unless ENV[k] }
end
-# ENV['USE_LOCAL'] = false # This is already default
+# ENV['USE_LOCAL'] = nil # This is already default
ENV['LOCAL_PATH'] = "vendor" unless ENV['LOCAL_PATH']
ENV['PANTRY_REPO'] = 'infochimps-labs/ironfan-pantry' unless ENV['PANTRY_REPO']
ENV['PANTRY_BRANCH'] = 'master' unless ENV['PANTRY_BRANCH']
def github_cookbook(name, repo, rel, branch)
- if ENV['USE_LOCAL'].to_i
+ if ! ENV['USE_LOCAL'].nil?
r_name = repo.split('/')[1]
cookbook name, path: "#{ENV['LOCAL_PATH']}/#{r_name}/#{rel}"
else

0 comments on commit 954fbed

Please sign in to comment.