Sha256: d64c69a40a85cfb3fbbff7cf1a7361ca947988bd1994a34d9ce2fbec5dabc9ff
Contents?: true
Size: 496 Bytes
Versions: 18
Compression:
Stored size: 496 Bytes
Contents
module SpecInfra module Backend class Dockerfile < SpecInfra::Backend::Base def initialize @lines = [] ObjectSpace.define_finalizer(self) { File.write("Dockerfile", @lines.join("\n")) } end def run_command(cmd, opts={}) @lines << "RUN #{cmd}" { :stdout => nil, :stderr => nil, :exit_status => 0, :exit_signal => nil } end def from(base) @lines << "FROM #{base}" end end end end
Version data entries
18 entries across 18 versions & 1 rubygems