Skip to content

Instantly share code, notes, and snippets.

@thbar
Created April 17, 2015 08:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thbar/ce50d79e2e722a96a729 to your computer and use it in GitHub Desktop.
Save thbar/ce50d79e2e722a96a729 to your computer and use it in GitHub Desktop.
Converting from CSV to XLSX after a Kiba ETL run
post_process {
soffice = '/Applications/LibreOffice.app/Contents/MacOS/soffice'
[file, country_report_file, total_report_file].each do |f|
system! "#{soffice} --headless --convert-to xlsx #{f}"
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment