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