Class: Luban::Deployment::Packages::Pcre::Installer

Inherits:
Luban::Deployment::Package::Installer
  • Object
show all
Defined in:
lib/luban/deployment/packages/pcre.rb

Instance Method Summary collapse

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


20
21
22
23
# File 'lib/luban/deployment/packages/pcre.rb', line 20

def installed?
  return false unless file?(pcre_executable)
  match?("#{pcre_executable} --version", package_major_version)
end

#pcre_executableObject



8
9
10
# File 'lib/luban/deployment/packages/pcre.rb', line 8

def pcre_executable
  @pcre_executable ||= bin_path.join('pcre-config')
end

#source_repoObject



12
13
14
# File 'lib/luban/deployment/packages/pcre.rb', line 12

def source_repo
  @source_repo ||= "https://sourceforge.net"
end

#source_url_rootObject



16
17
18
# File 'lib/luban/deployment/packages/pcre.rb', line 16

def source_url_root
  @source_url_root ||= "projects/pcre/files/pcre/#{package_major_version}"
end