class Luban::Deployment::Packages::Monit::Installer
Public Instance Methods
installed?()
click to toggle source
# File lib/luban/deployment/packages/monit/installer.rb, line 20 def installed? return false unless file?(monit_executable) pattern = "Monit version #{package_major_version}" match?("#{monit_executable} -V", pattern) end
source_repo()
click to toggle source
# File lib/luban/deployment/packages/monit/installer.rb, line 12 def source_repo @source_repo ||= "http://mmonit.com" end
source_url_root()
click to toggle source
# File lib/luban/deployment/packages/monit/installer.rb, line 16 def source_url_root @source_url_root ||= "monit/dist" end
with_openssl_dir(dir)
click to toggle source
# File lib/luban/deployment/packages/monit/installer.rb, line 26 def with_openssl_dir(dir) @configure_opts << "--with-ssl-static=#{dir}" end
without_pam?()
click to toggle source
# File lib/luban/deployment/packages/monit/installer.rb, line 8 def without_pam? task.opts.without_pam end
Protected Instance Methods
configure_build_options()
click to toggle source
Calls superclass method
# File lib/luban/deployment/packages/monit/installer.rb, line 32 def configure_build_options super @configure_opts << "--without-pam" if without_pam? end
install!()
click to toggle source
Calls superclass method
# File lib/luban/deployment/packages/monit/installer.rb, line 37 def install! super # Symlink 'etc' to the profile path # 'etc' is the default search path for control file ln(profile_path, install_path.join('etc')) end