Module: GzRelease::TestHelper
- Defined in:
- lib/gz_release/test_helper.rb
Overview
Allows testing of a docker image
Instance Method Summary collapse
Instance Method Details
#docker(image, command) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# 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 |