Skip to content

Commit

Permalink
Revert a change that exposed the user store
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Sep 27, 2024
1 parent 34ed383 commit 669ea97
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/msf/core/modules/metadata/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ def init_store
load_metadata
end

def get_user_store
store_dir = ::File.join(Msf::Config.config_directory, "store")
FileUtils.makedirs(store_dir) if !::File.exist?(store_dir)
return ::File.join(store_dir, UserMetaDataFile)
end


#######
private
#######
Expand Down Expand Up @@ -114,6 +107,12 @@ def configure_user_store
return copied
end

def get_user_store
store_dir = ::File.join(Msf::Config.config_directory, "store")
FileUtils.makedirs(store_dir) if !::File.exist?(store_dir)
return ::File.join(store_dir, UserMetaDataFile)
end

def load_cache_from_file_store
cache_map = JSON.parse(File.read(@path_to_user_metadata))
cache_map.each {|k,v|
Expand Down

0 comments on commit 669ea97

Please sign in to comment.