module Neutron::PkgStatus
Package status utilities
Constants
- FNAME
Public Class Methods
add_found(found)
click to toggle source
Adds found packages to `checked` list @param [Array<String>] found
# File lib/neutron.rb, line 160 def self.add_found(found) checked = get_checked File.delete(FNAME) if File.exist?(FNAME) File.write(FNAME, JSON.pretty_generate(found+checked)) end
get_checked()
click to toggle source
Gets all checked packages @return [Array<String>]
# File lib/neutron.rb, line 150 def self.get_checked if File.exist?(FNAME) JSON.load(File.read(FNAME)) else [] end end