Class: Glossarist::Agent::Iho::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/glossarist/agent/iho/cli.rb

Instance Method Summary collapse

Instance Method Details

#retrieve_conceptsObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/glossarist/agent/iho/cli.rb', line 14

def retrieve_concepts
  cache_dir = File.expand_path(options[:cache])
  output_dir = File.expand_path(options[:output])
  fetch = options[:fetch]

  downloader = Downloader.new(cache_dir, fetch: fetch)
  downloader.download_csv_files

  generator = Generator.new(cache_dir, output_dir)
  generator.save_to_files
end