Sha256: 839bfb9cb385143de4a8b097ca7e4bf6c9b8ed05cac406f94e974986afb9a5fa
Contents?: true
Size: 429 Bytes
Versions: 29
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
29 entries across 29 versions & 1 rubygems