MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / libExists

Function libExists

tools/create_class.rb:68–80  ·  view source on GitHub ↗
(openms_path, lib_name)

Source from the content-addressed store, hash-verified

66end
67
68def libExists(openms_path, lib_name)
69 libExists = TRUE
70
71 if not File.directory?("#{openms_path}/src/#{lib_name}")
72 puts "The given lib #{lib_name} doesn't exist. Abort!"
73 libExists = FALSE
74 elsif not File.exist?("#{openms_path}/src/#{lib_name}/CMakeLists.txt")
75 puts "The given lib #{lib_name} is not a valid OpenMS sub-lib. Abort!"
76 libExists = FALSE
77 end
78
79 return libExists
80end
81
82def getLicense(openms_path)
83 license = File.read("#{openms_path}/LICENSE")

Callers 1

create_class.rbFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected