Module: Luban::Deployment::Parameters::Docker

Extended by:
Base
Included in:
Application
Defined in:
lib/luban/deployment/parameters.rb

Instance Method Summary collapse

Methods included from Base

parameter

Instance Method Details

#validate_for_docker_cert_pathObject



135
136
137
138
139
140
141
142
143
# File 'lib/luban/deployment/parameters.rb', line 135

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