Method: QueueManager.system_call
- Defined in:
- lib/autoflow/queue_manager.rb
.system_call(cmd, path = nil, remote = FALSE, ssh = nil) ⇒ Object
259 260 261 262 263 264 265 266 267 |
# File 'lib/autoflow/queue_manager.rb', line 259 def self.system_call(cmd, path = nil, remote = FALSE, ssh = nil) cmd = "cd #{path}; " + cmd if !path.nil? if remote call = ssh.exec!(cmd) else call = %x[#{cmd}] end return call end |