diff --git a/lib/refrepo/gen/reference-api.rb b/lib/refrepo/gen/reference-api.rb index 61c3ec4f08a80e0ecb666bc3bf13d723baf6dad6..b149374b6180955a46e0cc88bbf58e36a3750fdf 100644 --- a/lib/refrepo/gen/reference-api.rb +++ b/lib/refrepo/gen/reference-api.rb @@ -1,6 +1,5 @@ require 'refrepo/valid/input/schema' require 'refrepo/valid/homogeneity' -require 'refrepo/accesses' # Creation du fichier network_equipment def create_network_equipment(network_uid, network, refapi_path, site_uid = nil) @@ -49,14 +48,11 @@ def generate_reference_api global_hash.reject {|k, _v| k == "sites" || k == "network_equipments" || k == "disk_vendor_model_mapping"}) end - accesses_path = Pathname.new(refapi_path).join("accesses") - puts "Generating the reference api:\n\n" puts "Removing data directory:\n" FileUtils.rm_rf(Pathname.new(refapi_path).join("sites")) FileUtils.rm_rf(Pathname.new(refapi_path).join("network_equipments")) - FileUtils.rm_rf(accesses_path) puts "Done." # Generate global network_equipments (renater links) @@ -164,14 +160,6 @@ def generate_reference_api end - # Generate the json containing all accesses level. - accesses_path.mkpath() - generate_accesses_json( - accesses_path.join("all.json"), - generate_access_level - ) - - node_keys = %w[uid nodeset gpu_devices processor architecture storage_devices memory_devices network_adapters performance] # Generate the all-in-one json with just enough information for resources-explorer. all_in_one_hash = {