8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/conquest/cli.rb', line 8
def self.start
print "Downloading data..."
parser = Parser.new DATA_URL
puts "\nFinished!"
puts
puts " Please enter where you would like to save your files.\n Enter paths relative to the current directory.\n EOS\n print \"Hex List: \"\n save_hex_list = STDIN.gets.strip\n print \"ARDS Code: \"\n save_ards_code = STDIN.gets.strip\n\n File.open(save_hex_list, \"w\") { |f| f << parser.hex_list }\n File.open(save_ards_code, \"w\") { |f| f << parser.ards_code }\n\n puts\n puts <<-EOS.heredoc\n 2 files written:\n \#{save_hex_list}\n \#{save_ards_code}\n EOS\nend\n".heredoc
|