From 7ac216570cce563799cdd46ddc4fe251c2fb5618 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 7 May 2015 13:01:42 -0300 Subject: [PATCH] Rakefile: load 'local.rake' at the very beginning --- Rakefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 32a7b70..0a6b7c0 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,9 @@ +begin + load 'local.rake' +rescue LoadError + # nothing +end + $SPB_ENV = ENV.fetch('SPB_ENV', 'local') ssh_config_file = "config/#{$SPB_ENV}/ssh_config" @@ -12,12 +18,6 @@ if Chake::VERSION < '0.4.3' fail "Please upgrade to chake 0.4.3+" end -begin - load 'local.rake' -rescue LoadError - # nothing -end - config = YAML.load_file(config_file) ips = YAML.load_file(ips_file) $nodes.each do |node| -- libgit2 0.21.2