Sha256: 8beca23c7789c18ca061f9df6986535cff058beaa505c2c35192ec7a199ba740
Contents?: true
Size: 377 Bytes
Versions: 26
Compression:
Stored size: 377 Bytes
Contents
# -*- coding: utf-8 -*- module Specinfra::Backend class Dockerfile < Specinfra::Backend::Base def initialize @lines = [] ObjectSpace.define_finalizer(self) { puts @lines } end def run_command(cmd, opts={}) @lines << "RUN #{cmd}" CommandResult.new end def from(base) @lines << "FROM #{base}" end end end
Version data entries
26 entries across 26 versions & 1 rubygems