Sha256: 1678ed6e207f1b3ba46b6f47d5138d3ecf695366632d26f7316692b004a7e901

Contents?: true

Size: 429 Bytes

Versions: 75

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

75 entries across 75 versions & 1 rubygems

Version Path
specinfra-1.27.5 lib/specinfra/backend/dockerfile.rb
specinfra-1.27.4 lib/specinfra/backend/dockerfile.rb
specinfra-1.27.3 lib/specinfra/backend/dockerfile.rb
specinfra-1.27.2 lib/specinfra/backend/dockerfile.rb
specinfra-1.27.1 lib/specinfra/backend/dockerfile.rb
specinfra-1.27.0 lib/specinfra/backend/dockerfile.rb
specinfra-1.26.0 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.8 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.7 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.6 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.5 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.4 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.3 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.2 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.1 lib/specinfra/backend/dockerfile.rb
specinfra-1.25.0 lib/specinfra/backend/dockerfile.rb
specinfra-1.24.0 lib/specinfra/backend/dockerfile.rb
specinfra-1.23.1 lib/specinfra/backend/dockerfile.rb
specinfra-1.23.0 lib/specinfra/backend/dockerfile.rb
specinfra-1.22.1 lib/specinfra/backend/dockerfile.rb