Commit 104103af2ae7ca42f2cb66759c4620d0aa665403

Authored by Antonio Terceiro
1 parent b8341ba3

Rakefile: don't override $CHAKE_RSYNC_OPTIONS

including anything set on local.rake
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
@@ -14,11 +14,11 @@ config_file = "config/#{$SPB_ENV}/config.yaml" @@ -14,11 +14,11 @@ config_file = "config/#{$SPB_ENV}/config.yaml"
14 iptables_file = "config/#{$SPB_ENV}/iptables-filter-rules" 14 iptables_file = "config/#{$SPB_ENV}/iptables-filter-rules"
15 15
16 ENV['CHAKE_TMPDIR'] = "tmp/chake.#{$SPB_ENV}" 16 ENV['CHAKE_TMPDIR'] = "tmp/chake.#{$SPB_ENV}"
17 -  
18 ENV['CHAKE_SSH_CONFIG'] = ssh_config_file 17 ENV['CHAKE_SSH_CONFIG'] = ssh_config_file
19 18
20 -ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude backups'  
21 -ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude src' 19 +ENV['CHAKE_RSYNC_OPTIONS'] ||= ''
  20 +ENV['CHAKE_RSYNC_OPTIONS'] << ' ' << '--exclude backups'
  21 +ENV['CHAKE_RSYNC_OPTIONS'] << ' ' << '--exclude src'
22 22
23 if $SPB_ENV == 'lxc' 23 if $SPB_ENV == 'lxc'
24 system("mkdir -p config/lxc; sudo lxc-ls -f -F name,ipv4 | sed -e '/^softwarepublico/ !d; s/softwarepublico_//; s/_[0-9_]*/:/ ' > #{ips_file}.new") 24 system("mkdir -p config/lxc; sudo lxc-ls -f -F name,ipv4 | sed -e '/^softwarepublico/ !d; s/softwarepublico_//; s/_[0-9_]*/:/ ' > #{ips_file}.new")