module GzRelease # Allows testing of a docker image module TestHelper def docker(image, command) require 'ostruct' result = OpenStruct.new result.output = `docker run #{image} #{command}` result.status = $CHILD_STATUS.exitstatus result end end end