Method: ConfigmonkeyCli::Application::ManifestAction::Rsync#destructive
- Defined in:
- lib/configmonkey_cli/application/manifest_actions/rsync.rb
#destructive ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/configmonkey_cli/application/manifest_actions/rsync.rb', line 26 def destructive if @opts[:preview] && !(app.opts[:default_yes] || app.opts[:default_accept]) preview = do_sync(true) render_sync(preview) if preview.any? if manifest.yes?("Apply changes?", default: @opts[:preview] == true || [:y, :yes].include?(@opts[:preview].to_sym)) render_sync do_sync end end else render_sync do_sync end end |