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

Version Path
specinfra-2.4.5 lib/specinfra/backend/dockerfile.rb
specinfra-2.4.4 lib/specinfra/backend/dockerfile.rb
specinfra-2.4.3 lib/specinfra/backend/dockerfile.rb
specinfra-2.4.2 lib/specinfra/backend/dockerfile.rb
specinfra-2.4.1 lib/specinfra/backend/dockerfile.rb
specinfra-2.4.0 lib/specinfra/backend/dockerfile.rb
specinfra-2.3.2 lib/specinfra/backend/dockerfile.rb
specinfra-2.3.1 lib/specinfra/backend/dockerfile.rb
specinfra-2.3.0 lib/specinfra/backend/dockerfile.rb
specinfra-2.2.4 lib/specinfra/backend/dockerfile.rb
specinfra-2.2.3 lib/specinfra/backend/dockerfile.rb
specinfra-2.2.2 lib/specinfra/backend/dockerfile.rb
specinfra-2.2.1 lib/specinfra/backend/dockerfile.rb
specinfra-2.2.0 lib/specinfra/backend/dockerfile.rb
specinfra-2.1.1 lib/specinfra/backend/dockerfile.rb
specinfra-2.1.0 lib/specinfra/backend/dockerfile.rb
specinfra-2.0.4 lib/specinfra/backend/dockerfile.rb
specinfra-2.0.3 lib/specinfra/backend/dockerfile.rb
specinfra-2.0.2 lib/specinfra/backend/dockerfile.rb
specinfra-2.0.1 lib/specinfra/backend/dockerfile.rb