module Nexoform::Sh
Public Class Methods
run_command(command, print_stdout = false)
click to toggle source
# File lib/nexoform/shell.rb, line 7 def self.run_command(command, print_stdout = false) stdout = `#{command}` puts stdout if print_stdout OpenStruct.new( success?: $?.exitstatus.zero?, exitstatus: $?.exitstatus, stdout: stdout ) end