Sha256: 1678ed6e207f1b3ba46b6f47d5138d3ecf695366632d26f7316692b004a7e901
Contents?: true
Size: 429 Bytes
Versions: 75
Compression:
Stored size: 429 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}" CommandResult.new end def from(base) @lines << "FROM #{base}" end end end end
Version data entries
75 entries across 75 versions & 1 rubygems