lib/vanagon/engine/docker.rb
def docker_cp_globs_from(globs, host_path)
        Array(globs).each do |glob|
          paths = docker_exec(%(for file in #{glob};do [ -e "$file" ] && printf '%s\\0' "${file}";done), true).split("\0")

          paths.each do |path|
            docker_cp("#{build_host_name}-builder:#{path}", host_path)
          end
        end
      end
# Copy files matching a glob pattern from the container to the host
#
# @note Globs are expanded by running `/bin/sh` in the container, which
#   may not support the same variety of expressions as Ruby's `Dir.glob`.
#   For example, `**` may not work.
Copy files matching a glob pattern from the container to the host
Copy files matching a glob pattern from the container to the host
def docker_cp_globs_from(globs, host_path)
        Array(globs).each do |glob|
          paths = docker_exec(%(for file in #{glob};do [ -e "$file" ] && printf '%s\\0' "${file}";done), true).split("\0")
          paths.each do |path|
            docker_cp("#{build_host_name}-builder:#{path}", host_path)
          end
        end
      end
def docker_cp_globs_from ( globs , host_path ) Array ( globs ) . each do | glob | paths = docker_exec ( %(for file in #{glob};do [ -e "$file" ] && printf '%s\\0' "${file}";done) , true ) . split ( "\0" ) paths . each do | path | docker_cp ( "#{build_host_name}-builder:#{path}" , host_path ) end end end
Copy files matching a glob pattern from the container to the host
Copy files matching a glob pattern from the container to the host
globs
host_path
note
Globs are expanded by running `/bin/sh` in the container, which may not support the same variety of expressions as Ruby's `Dir.glob`. For example, `**` may not work.
Globs are expanded by running ` / bin / sh ` in the container which may not support the same variety of expressions as Ruby ' s ` Dir . glob ` . For example ` ** ` may not work .