Class: Capistrano::Deploy::Strategy::Unison
- Inherits:
-
Base
- Object
- Base
- Capistrano::Deploy::Strategy::Unison
- Defined in:
- lib/capistrano/recipes/deploy/strategy/unison.rb
Instance Method Summary collapse
Instance Method Details
#deploy! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/capistrano/recipes/deploy/strategy/unison.rb', line 6 def deploy! find_servers.each do |server| flags = [ '-auto', '-batch', '-terse', '-contactquietly', '-force .', '-ignore "Name {.git}"', '-ignore "Name {,.}*{.git}"' ] system "unison #{flags.join(' ')} . ssh://#{server}/#{shared_path}/unison-copy" # abort unless $?.success? end run "ln -sf #{shared_path}/unison-copy #{release_path}" end |