class Luban::Deployment::Packages::Git::Installer

Public Instance Methods

install_tcltk?() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 22
def install_tcltk?
  task.opts.install_tcltk
end
installed?() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 36
def installed?
  return false unless file?(git_executable)
  pattern = "version #{package_major_version}"
  match?("#{git_executable} --version", pattern)
end
source_repo() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 28
def source_repo
  @source_repo ||= "https://www.kernel.org"
end
source_url_root() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 32
def source_url_root
  @source_url_root ||= "pub/software/scm/git"
end
with_curl_dir(dir) click to toggle source
# File lib/luban/deployment/packages/git.rb, line 46
def with_curl_dir(dir)
  @configure_opts << "--with-curl=#{dir}"
end
with_openssl_dir(dir) click to toggle source
# File lib/luban/deployment/packages/git.rb, line 42
def with_openssl_dir(dir)
  @configure_opts << "--with-openssl=#{dir}"
end

Protected Instance Methods

configure_build_options() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 52
def configure_build_options
  super
  @configure_opts << "--without-tcltk" unless install_tcltk?
end
install_package!() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 61
def install_package!
  test(:make, "NO_GETTEXT=1 install >> #{install_log_file_path} 2>&1")
end
make_package!() click to toggle source
# File lib/luban/deployment/packages/git.rb, line 57
def make_package!
  test(:make, "NO_GETTEXT=1 >> #{install_log_file_path} 2>&1")
end