Class: Dply::Deplist
Constant Summary collapse
- BASE_PACKAGES =
Set["glibc", "libgcc", "libstdc++", "openssl", "ruby-alt", "jemalloc"]
Instance Method Summary collapse
-
#initialize(tar_path) ⇒ Deplist
constructor
A new instance of Deplist.
- #verify! ⇒ Object
Methods included from Helper
#cmd, #error, #git, #logger, #sh, #symlink
Constructor Details
#initialize(tar_path) ⇒ Deplist
Returns a new instance of Deplist.
15 16 17 |
# File 'lib/dply/deplist.rb', line 15 def initialize(tar_path) @tar_path = Pathname.new(tar_path).realpath end |
Instance Method Details
#verify! ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/dply/deplist.rb', line 19 def verify! error "#{@tar_path} not readable" if not File.readable? @tar_path tmp_dir do logger.info "(in #{Dir.pwd})" cmd "tar xf #{@tar_path}" pkgs_list = Pkgs.new("pkgs.yml").runtime @libs_files_map = libs_files_map libs = @libs_files_map.keys if logger.debug? require 'pp' pp @libs_files_map end deps = Rpm.libs_pkgs_map libs verify_deps(deps, pkgs_list) end end |