Method: Synqa::SyncOperation#executeCommand

Defined in:
lib/synqa.rb

#executeCommand(command, dryRun) ⇒ Object

Execute a (local) command, or, if dryRun, just pretend to execute it. Raise an exception if the process exit status is not 0.



1000
1001
1002
1003
1004
1005
1006
# File 'lib/synqa.rb', line 1000

def executeCommand(command, dryRun)
  puts "EXECUTE: #{command}"
  if not dryRun
    system(command)
    checkProcessStatus(command)
  end
end