Class: Front::CLI::VagrantWorker

Inherits:
Object
  • Object
show all
Defined in:
lib/front/cli/vagrant.rb

Class Method Summary collapse

Class Method Details

.perform(task) ⇒ Object



102
103
104
105
106
107
108
109
110
# File 'lib/front/cli/vagrant.rb', line 102

def self.perform(task)
  cmd = task.cmd
  options = task.options
  options[:out] = task.log_file
  options[:err] = task.log_file

  pid = Kernel.spawn(cmd, options)
  Process.wait pid
end