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
@@ -5,3 +5,4 @@ @@ -5,3 +5,4 @@
5 /tmp 5 /tmp
6 /docs/_build 6 /docs/_build
7 /.*.html 7 /.*.html
  8 +/local.rake
@@ -12,6 +12,12 @@ if Chake::VERSION < '0.4' @@ -12,6 +12,12 @@ if Chake::VERSION < '0.4'
12 fail "Please upgrade to chake 0.4+" 12 fail "Please upgrade to chake 0.4+"
13 end 13 end
14 14
  15 +begin
  16 + load 'local.rake'
  17 +rescue LoadError
  18 + # nothing
  19 +end
  20 +
15 config = YAML.load_file(config_file) 21 config = YAML.load_file(config_file)
16 ips = YAML.load_file(ips_file) 22 ips = YAML.load_file(ips_file)
17 $nodes.each do |node| 23 $nodes.each do |node|
local.rake.example 0 → 100644
@@ -0,0 +1,2 @@ @@ -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'