module GzRelease::TestHelper
Allows testing of a docker image
Public Instance Methods
docker(image, command)
click to toggle source
# File lib/gz_release/test_helper.rb, line 4 def docker(image, command) require 'ostruct' result = OpenStruct.new result.output = `docker run -it #{image} #{command}` result.status = $CHILD_STATUS.exitstatus result end