Sha256: 4cc79009d66d50f861bb8f338287701e8e4d5c1f3a6befb5f4b0e1a81d8f06d5
Contents?: true
Size: 769 Bytes
Versions: 83
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true 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 ::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
83 entries across 83 versions & 3 rubygems