module Cmd def self.run(cmd) require 'open3' Rails.logger.debug "DB8 Running\n#{cmd[0..180]}" stdout, stderr, status = Open3.capture3(cmd) Rails.logger.debug "DB8\nstatus:#{status}\nstdout:#{stdout}\nstderr:#{stderr}" end end