class Tsudura::Provisioner::Executer
Public Class Methods
run(command)
click to toggle source
# File lib/tsudura/provisioner/executer.rb, line 3 def self.run(command) Open3.popen3(command) do |_, stdout, stderr, wait_thr| stdout.each { |line| puts line } stderr.each { |line| puts line } raise ::Tsudura::Errors::ProvisioningFailed unless wait_thr.value.success? end end