class NixRPGBuild::Scanner
Public Class Methods
new(config_yml)
click to toggle source
Calls superclass method
NixRPGBuild::Build::new
# File lib/scanner.rb, line 3 def initialize(config_yml) super(config_yml) @pkg_name = [] end
Public Instance Methods
scan()
click to toggle source
Checks the system for packages needed as dependencies. It uses pkg-config to do this.
@return [Nil]
# File lib/scanner.rb, line 13 def scan @pkg_config.each do |i| puts "checking for #{i}" @pkg_name.push(i) end @pkg_name.each do |i| Build.exec("pkg-config --print-errors --exists '#{i}'") end nil end