Sha256: d64c69a40a85cfb3fbbff7cf1a7361ca947988bd1994a34d9ce2fbec5dabc9ff

Contents?: true

Size: 496 Bytes

Versions: 18

Compression:

Stored size: 496 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}"
        { :stdout => nil, :stderr => nil,
          :exit_status => 0, :exit_signal => nil }
      end

      def from(base)
        @lines << "FROM #{base}"
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
specinfra-0.4.1 lib/specinfra/backend/dockerfile.rb
specinfra-0.4.0 lib/specinfra/backend/dockerfile.rb
specinfra-0.3.2 lib/specinfra/backend/dockerfile.rb
specinfra-0.3.1 lib/specinfra/backend/dockerfile.rb
specinfra-0.3.0 lib/specinfra/backend/dockerfile.rb
specinfra-0.2.1 lib/specinfra/backend/dockerfile.rb
specinfra-0.2.0 lib/specinfra/backend/dockerfile.rb
specinfra-0.1.1 lib/specinfra/backend/dockerfile.rb
specinfra-0.1.0 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.17 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.16 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.15 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.14 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.13 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.12 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.11 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.10 lib/specinfra/backend/dockerfile.rb
specinfra-0.0.9 lib/specinfra/backend/dockerfile.rb