Sha256: af82ec016ea56ed258b73f2f13935665a37aea8190a00c9331c4bbdd85662850
Contents?: true
Size: 450 Bytes
Versions: 10
Compression:
Stored size: 450 Bytes
Contents
module Boxes module Testing module Command attr_reader :response def run_command(cmd) stdout = `#{cmd}` @response = Response.new(cmd, stdout, $?.exitstatus) end class Response attr_accessor :cmd, :stdout, :exit_status def initialize(cmd, stdout, exit_status) @cmd = cmd @stdout = stdout @exit_status = exit_status end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems