lib/eac_docker/images/coded.rb in eac_docker-0.2.2 vs lib/eac_docker/images/coded.rb in eac_docker-0.3.0
- old
+ new
@@ -1,7 +1,8 @@
# frozen_string_literal: true
+require 'eac_docker/debug'
require 'eac_docker/executables'
require 'eac_docker/images/base'
require 'eac_ruby_utils/core_ext'
module EacDocker
@@ -24,9 +25,12 @@
end
private
def id_uncached
+ if ::EacDocker::Debug.enabled?
+ ::EacDocker::Executables.docker.command(*build_args.excluding('--quiet')).system!
+ end
::EacDocker::Executables.docker.command(*build_args).execute!.strip
end
def build_args
args = %w[build --quiet]