Sha256: b71f0d88bcb7bd8d2b041fca7b1aef3abaa5e18203cf91385a992b765a319a57
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 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 send_file(from, to) @lines << "ADD #{from} #{to}" CommandResult.new end def from(base) @lines << "FROM #{base}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.5.0 | lib/specinfra/backend/dockerfile.rb |