Commit 4e4b1d2b74cba2312380c45b34159adb55b9035a

Authored by Antonio Terceiro
1 parent 23a7805f

Load a local rakefile to set chake options

Showing 3 changed files with 9 additions and 0 deletions   Show diff stats
.gitignore
... ... @@ -5,3 +5,4 @@
5 5 /tmp
6 6 /docs/_build
7 7 /.*.html
  8 +/local.rake
... ...
Rakefile
... ... @@ -12,6 +12,12 @@ if Chake::VERSION < '0.4'
12 12 fail "Please upgrade to chake 0.4+"
13 13 end
14 14  
  15 +begin
  16 + load 'local.rake'
  17 +rescue LoadError
  18 + # nothing
  19 +end
  20 +
15 21 config = YAML.load_file(config_file)
16 22 ips = YAML.load_file(ips_file)
17 23 $nodes.each do |node|
... ...
local.rake.example 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +# copy this file to local.rake and adjust to your local environment
  2 +ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude tmp/dump'
... ...