Class: VagrantPlugins::Unison::CommandInteract

Inherits:
Object
  • Object
show all
Includes:
UnisonSync
Defined in:
lib/vagrant-unison2/command.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from UnisonSync

#check_conflicting_options!, #execute_sync_command, #options, #options_parser, #parse_options!

Class Method Details

.synopsisObject



148
149
150
# File 'lib/vagrant-unison2/command.rb', line 148

def self.synopsis
  "run unison in interactive mode, to resolve conflicts"
end

Instance Method Details

#executeObject



152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/vagrant-unison2/command.rb', line 152

def execute
  with_target_vms do |machine|
    execute_sync_command(machine) do |command|
      command.terse = true
      command = command.to_s

      @env.ui.info "Running #{command}"

      system(command)
    end
  end

  0
end