class RBT::PurgeLibrariesOfThisProgram
Public Class Methods
[](i = ARGV)
click to toggle source
Public Instance Methods
input?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/purge_libraries_of_this_program.rb, line 68 def run @cookbook = action(:SanitizeCookbook, input?) { :fast } all_libraries = @cookbook.libraries? # <- Obtain all registered binaries. if !all_libraries.empty? all_libraries.each {|file| target = "/usr/lib/#{File.basename(file)}" if File.exist? target opnn; remove_file(target, :be_verbose) end } end end