Added list configurations
This commit is contained in:
@@ -38,4 +38,20 @@ class IniConfig
|
||||
"db"
|
||||
end
|
||||
end
|
||||
|
||||
def get_configs_hide()
|
||||
unless @config["configs"]["hide"].nil?
|
||||
@config["configs"]["hide"].split(",").map { |item| item.strip }
|
||||
else
|
||||
[]
|
||||
end
|
||||
end
|
||||
|
||||
def get_configs_selected()
|
||||
unless @config["configs"]["selected"].nil?
|
||||
@config["configs"]["selected"].split(",").map { |item| item.strip }
|
||||
else
|
||||
[]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,3 +13,14 @@ def sanitize_rcptname(filename)
|
||||
sanitized.gsub!(/^_+|_+$/, "")
|
||||
sanitized
|
||||
end
|
||||
|
||||
def check_partname_in_array(filename, search_array)
|
||||
fnd = false
|
||||
search_array.each do |item|
|
||||
if filename.include?(item)
|
||||
fnd = true
|
||||
break
|
||||
end
|
||||
end
|
||||
fnd
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user