Sha256: 4f32a26e30fdac3192b3e04829d4784f9e444fb112665faabe598d6c864dd38e
Contents?: true
Size: 687 Bytes
Versions: 20
Compression:
Stored size: 687 Bytes
Contents
module Kubes::Docker::Args class Default def initialize(name, image_name, options={}) @name, @image_name, @options = name.to_s, image_name, options @dockerfile = "Dockerfile" end def args case @name when "build" build_args when "push" [@image_name] else [] end end def build_args ["-t #{@image_name} -f #{@dockerfile} ."] end private def resource_path [".kubes/output", @options[:role], resource].compact.join('/') end def resource return unless r = @options[:resource] # intentional assignment r.include?(".yaml") ? r : "#{r}.yaml" end end end
Version data entries
20 entries across 20 versions & 1 rubygems