class Luban::Deployment::Packages::Logrotate::Installer
Public Instance Methods
bin_path()
click to toggle source
# File lib/luban/deployment/packages/logrotate.rb, line 28 def bin_path @bin_path ||= install_path.join('sbin') end
installed?()
click to toggle source
# File lib/luban/deployment/packages/logrotate.rb, line 22 def installed? return false unless file?(logrotate_executable) pattern = "logrotate #{package_major_version}" match?("#{logrotate_executable} --version 2>&1", pattern) end
source_repo()
click to toggle source
# File lib/luban/deployment/packages/logrotate.rb, line 14 def source_repo @source_repo ||= "https://github.com" end
source_url_root()
click to toggle source
# File lib/luban/deployment/packages/logrotate.rb, line 18 def source_url_root @source_url_root ||= "logrotate/logrotate/releases/download/#{package_major_version}" end
Protected Instance Methods
configure_package!()
click to toggle source
Calls superclass method
Luban::Deployment::Package::Installer#configure_package!
# File lib/luban/deployment/packages/logrotate.rb, line 34 def configure_package! with compose_build_env_variables do test("./autogen.sh", ">> #{install_log_file_path} 2>&1") and super end end