use constants for data files

This commit is contained in:
Christian Mehlmauer
2013-01-19 21:33:07 +01:00
parent 5d6ce70863
commit 14be8c700f
9 changed files with 24 additions and 15 deletions

View File

@@ -57,9 +57,9 @@ class WpItem < Vulnerable
def wp_org_item?
case @type
when "themes"
file = "#{DATA_DIR}/themes_full.txt"
file = THEMES_FULL_FILE
when "plugins"
file = "#{DATA_DIR}/plugins_full.txt"
file = PLUGINS_FULL_FILE
else
raise("Unknown type #@type")
end