module Luban::Deployment::Parameters::Docker

Public Instance Methods

has_base_packages?() click to toggle source
# File lib/luban/deployment/parameters.rb, line 142
def has_base_packages?; !base_packages.empty?; end
validate_for_docker_cert_path() click to toggle source
# File lib/luban/deployment/parameters.rb, line 144
def validate_for_docker_cert_path
  return if !docker_tls_verify and docker_cert_path.nil?
  if docker_cert_path.is_a?(String)
    docker_cert_path Pathname.new(docker_cert_path)
  end
  unless docker_cert_path.is_a?(Pathname)
    abort "Aborted! Docker cert path should be a String or a Pathname: docker_cert_path 'path to docker certs'"
  end
end