Sha256: 88b80a73be193cff49a0d43787a5bfd7a1285e802ccdd294c971576fc788db6e

Contents?: true

Size: 316 Bytes

Versions: 7

Compression:

Stored size: 316 Bytes

Contents

# Wraps a dockerfile to allow it to be easily tested
class Dockerfile
  attr_reader :path

  def initialize(name)
    @path = Pathname.new(File.expand_path("../../../docker/#{name.downcase}/Dockerfile", __FILE__))
  end

  def include_env?(name, value)
    path.read =~ /ENV #{name} (#{value}|"#{value}")/
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lint_trap-0.0.19 spec/support/dockerfile.rb
lint_trap-0.0.18 spec/support/dockerfile.rb
lint_trap-0.0.17 spec/support/dockerfile.rb
lint_trap-0.0.16 spec/support/dockerfile.rb
lint_trap-0.0.15 spec/support/dockerfile.rb
lint_trap-0.0.14 spec/support/dockerfile.rb
lint_trap-0.0.13 spec/support/dockerfile.rb