17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/inferno/utils/ig_downloader.rb', line 17
def load_ig(ig_input, idx = nil, thor_config = { verbose: true })
case ig_input
when FHIR_PACKAGE_NAME_REG_EX
uri = ig_registry_url(ig_input)
when HTTP_URI_REG_EX
uri = ig_http_url(ig_input)
when FILE_URI_REG_EX
uri = ig_input[7..]
else
raise StandardError, " Could not find implementation guide: \#{ig_input}\n Put its package.tgz file directly in \#{ig_path}\n FAILED_TO_LOAD\n end\n\n # use Thor's get to support CLI options config\n get(uri, ig_file(idx), thor_config)\n uri\nend\n"
|