module Dory::Sh

Public Class Methods

run_command(command) click to toggle source
# File lib/dory/shell.rb, line 5
def self.run_command(command)
  stdout = `#{command}`
  OpenStruct.new({
    success?: $?.exitstatus == 0,
    exitstatus: $?.exitstatus,
    stdout: stdout
  })
end