Class: Cutlass::DockerDiff
- Inherits:
-
Object
- Object
- Cutlass::DockerDiff
- Defined in:
- lib/cutlass/docker_diff.rb
Overview
Diffs docker images
diff = DockerDiff.new
diff.call.changed? # => false
BashResult.run("docker build .")
diff.call.changed? # => true
Defined Under Namespace
Classes: DiffValue
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(before_ids: nil, get_image_ids_proc: -> { Docker::Image.all.map(&:id) }) ⇒ DockerDiff
constructor
A new instance of DockerDiff.
Constructor Details
#initialize(before_ids: nil, get_image_ids_proc: -> { Docker::Image.all.map(&:id) }) ⇒ DockerDiff
Returns a new instance of DockerDiff.
14 15 16 17 |
# File 'lib/cutlass/docker_diff.rb', line 14 def initialize(before_ids: nil, get_image_ids_proc: -> { Docker::Image.all.map(&:id) }) @before_ids = before_ids || get_image_ids_proc.call @get_image_ids_proc = get_image_ids_proc end |