class Luban::Deployment::Packages::Curl::Installer
Public Instance Methods
installed?()
click to toggle source
# File lib/luban/deployment/packages/curl.rb, line 22 def installed? return false unless file?(curl_executable) pattern = "curl #{package_version}" match?("#{curl_executable} -V 2>&1", pattern) end
source_repo()
click to toggle source
# File lib/luban/deployment/packages/curl.rb, line 14 def source_repo @source_repo ||= "https://curl.haxx.se" end
source_url_root()
click to toggle source
# File lib/luban/deployment/packages/curl.rb, line 18 def source_url_root @source_url_root ||= "download" end
with_openssl_dir(dir)
click to toggle source
# File lib/luban/deployment/packages/curl.rb, line 28 def with_openssl_dir(dir) if osx? @configure_opts << "--with-darwinssl" else @configure_opts << "--with-ssl=\"#{dir}\"" @configure_opts << "LDFLAGS=\"-Wl,-rpath -Wl,#{dir.join('lib')}\"" end end