Sha256: 9461c4bff8a9d1f24c380156af03765ca02f25c1d8b968a1e52da154b785f2fd
Contents?: true
Size: 939 Bytes
Versions: 162
Compression:
Stored size: 939 Bytes
Contents
# 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 module Images class Coded < ::EacDocker::Images::Base enable_simple_cache enable_immutable immutable_accessor :tag common_constructor :path do self.path = path.to_pathname end def immutable_constructor_args [path] end def provide id self 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] args += ['--tag', tag] if tag.present? args + [path.to_path] end end end end
Version data entries
162 entries across 162 versions & 4 rubygems