INNER CODE UNIT · Ruby
apply_filepath
EugenMayer/docker-sync · lib/docker-sync/compose.rb:64
def apply_filepath(array, filepath, error_key)
path = File.expand_path(filepath)
unless File.exist?(path)
raise("Your referenced docker-compose file in docker-sync.yml was not found at #{error_key}")
end
array.push path
end
def apply_filepaths(array, filepath_array, error_key)
filepath_array.each do |filepath|
apply_filepath(array, filepath, error_key)
end
end
end