Sha256: 3b71175f8df18498ee2a37b459f504f79d4c8f8d7987516c93689d87fd67d77a
Contents?: true
Size: 385 Bytes
Versions: 16
Compression:
Stored size: 385 Bytes
Contents
module Specinfra::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
Version data entries
16 entries across 16 versions & 1 rubygems