module MavisCLI
frozen_string_literal: true
To get the latest version of the zip:
-
Check “Establishment fields CSV”
-
Check “Establishment links CSV”
-
Submit
-
Download the zip file
-
Move the downloaded file to db/data/dfe-schools.zip
Alternatively, you can run this task.
frozen_string_literal: true
To get the latest version of the zip:
-
Download the zip file “epraccur”
-
Extract the zip file
-
Place epraccur.csv in db/data/nhs-gp-practices.csv
Alternatively, you can run this task, which downloads directly from www.odsdatasearchandexport.nhs.uk/api/getReport?report=epraccur
frozen_string_literal: true
To get the latest version of the zip:
-
Go to get-information-schools.service.gov.uk/Guidance/LaNameCodes/DataTables
-
Check the type of code mappings you would like (English, Welsh or ‘Other’)
-
Submit
-
Select the “CSV” file type
-
Submit
-
Click the “Download” button
-
Download the zip file
-
Place it in db/data/gias-la-codes-english.zip (or -welsh.zip, or -other.zip)
Alternatively, you can run this task.
frozen_string_literal: true
frozen_string_literal: true
frozen_string_literal: true
frozen_string_literal: true
frozen_string_literal: true
Public Class Methods
Source
# File app/lib/mavis_cli.rb, line 6 def self.load_rails require_relative "../../config/environment" end
Source
# File app/lib/mavis_cli.rb, line 10 def self.progress_bar(total) @progress_bar ||= ProgressBar.create( total:, format: "%a %b\u{15E7}%i %p%% %t", progress_mark: " ", remainder_mark: "\u{FF65}" ) end
Source
# File app/lib/mavis_cli.rb, line 20 def self.prompt_to_continue(message = "Continue? (y/n) ") print message response = $stdin.gets.chomp.downcase case response when /y(es)?/i true else false end end
Source
# File app/lib/mavis_cli.rb, line 32 def self.terminal_lines `tput lines`.to_i end