Commit 7ac216570cce563799cdd46ddc4fe251c2fb5618
1 parent
07a64c3b
Exists in
master
and in
65 other branches
Rakefile: load 'local.rake' at the very beginning
This allows one to set $SPB_ENV once and for all, instead of typing it over and over
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
Rakefile
| 1 | +begin | ||
| 2 | + load 'local.rake' | ||
| 3 | +rescue LoadError | ||
| 4 | + # nothing | ||
| 5 | +end | ||
| 6 | + | ||
| 1 | $SPB_ENV = ENV.fetch('SPB_ENV', 'local') | 7 | $SPB_ENV = ENV.fetch('SPB_ENV', 'local') |
| 2 | 8 | ||
| 3 | ssh_config_file = "config/#{$SPB_ENV}/ssh_config" | 9 | ssh_config_file = "config/#{$SPB_ENV}/ssh_config" |
| @@ -12,12 +18,6 @@ if Chake::VERSION < '0.4.3' | @@ -12,12 +18,6 @@ if Chake::VERSION < '0.4.3' | ||
| 12 | fail "Please upgrade to chake 0.4.3+" | 18 | fail "Please upgrade to chake 0.4.3+" |
| 13 | end | 19 | end |
| 14 | 20 | ||
| 15 | -begin | ||
| 16 | - load 'local.rake' | ||
| 17 | -rescue LoadError | ||
| 18 | - # nothing | ||
| 19 | -end | ||
| 20 | - | ||
| 21 | config = YAML.load_file(config_file) | 21 | config = YAML.load_file(config_file) |
| 22 | ips = YAML.load_file(ips_file) | 22 | ips = YAML.load_file(ips_file) |
| 23 | $nodes.each do |node| | 23 | $nodes.each do |node| |