41 Commits

Author SHA1 Message Date
sdarwin
e3cc9cdd48 Add artifactory functionality to update-website-documentation 2021-12-17 09:32:43 -06:00
Daniel James
6148083367 Move classes into namespace. 2017-12-28 19:35:16 +00:00
Daniel James
e77480fabf One install method 2017-08-22 09:24:47 +01:00
Daniel James
b3794b3f79 Remove old update_documentation function
Should have removed it when I stated using 'Documentation::install'
2017-04-23 09:04:27 +01:00
Daniel James
970e4e2b51 Download and install releases on the website
Also takes the version as the parameter now. And had to make some
changes to how downloading works.
2017-04-23 09:04:27 +01:00
Daniel James
83a6cc1066 Remove redirection files from documentation on website.
They are left over when the documentation isn't built over them, and
result in redirect loops.
2016-10-03 20:18:24 +01:00
Daniel James
09a4c0846f Move extract_single_root_archive into BinTrayCache.
Perhaps a bit of a weird place to put it, but will be needed elsewhere.
2016-07-25 08:35:16 +01:00
Daniel James
1d25b9592c Move BinTrayCache into its own file. 2016-07-24 23:02:54 +01:00
Daniel James
37ccb0ab1a Use BoostTasks\TempDirectory 2016-07-24 23:02:54 +01:00
Daniel James
c086031398 Camel case method names. 2016-07-20 00:21:31 +01:00
Daniel James
68c381db77 Return exit code from CommandLineOptions::process for early exit. 2016-07-20 00:20:35 +01:00
Daniel James
3ccb0fad28 Minor tweaks. 2016-06-27 13:42:06 +01:00
Daniel James
485eaebfbe Extract into a subdirectory of the temporary directory. 2016-06-27 13:42:05 +01:00
Daniel James
39de3ac7a8 Try to do better logging. 2016-06-27 13:42:05 +01:00
Daniel James
e4f69bb6ba Path is already resolved by configuration system. 2016-06-27 13:42:04 +01:00
Daniel James
9bfeca62c1 Only delete old cache entries after a successful run. 2016-06-27 13:42:04 +01:00
Daniel James
e8bd7a435c Factor out extract code. 2016-06-27 13:42:03 +01:00
Daniel James
1c24c00cc2 Factor out the main download code. 2016-06-27 13:42:03 +01:00
Daniel James
dee6cf9ddd Fix handling when version is already installed. 2016-06-24 13:57:20 +01:00
Daniel James
204c7fd038 Slightly better error handling when downloading.
No exception if the initial fopen fails, as that is expected to happen
occassionaly now.
2016-06-23 16:42:05 +01:00
Daniel James
0e3d40b08e Try to download alternative files if first fails.
I assumed that if a file was listed by the API it would actually be
downloadable. This turns out not to be true, and for a while I was
getting continually getting a 404 error for a file even though it was
listed. So instead of selecting the best file to download in
fetch_details, return a list of files in order of preference.

This messes up caching slightly, as if the second file is used and it
has a different version, then it will still try to fetch the first file
on later iterations. This is pretty unlikely as it relies on two things
going wrong - files with different versions existing at the same time,
and the first file having a download error.
2016-06-23 16:42:04 +01:00
Daniel James
d86dc4c7ad Only create download directory if it doesn't already exist.
Which can happen if the download fails. Still will be a problem if its
partially downloaded, so will need a little more work.
2016-06-22 22:12:37 +01:00
Daniel James
76190e9538 Support more tarball/zipfile types, as tar.bz2 files aren't always available 2016-06-22 01:13:32 +01:00
Daniel James
27a5705c28 Remove old cache files. 2016-06-16 23:45:45 +01:00
Daniel James
dcb5dffe8b Organise cache by branch again. 2016-06-16 23:45:45 +01:00
Daniel James
2ebb18dcc4 Comments 2016-06-16 23:45:45 +01:00
Daniel James
849b6f9f49 Try not to guess the tarball's root directory. 2016-06-16 23:45:45 +01:00
Daniel James
00c3de4339 Inline extract_documentation. 2016-06-16 23:45:45 +01:00
Daniel James
47499e61f2 Use exceptions for errors in extract_documentation. 2016-06-16 23:45:45 +01:00
Daniel James
1a13a31fdd Only download after checking version.
Currently not really necessary, since if its already installed, it will
already be cached and a download won't happen. But in the future the
file might have been deleted from the cache, or it might just skip
caching altogether.
2016-06-16 23:45:45 +01:00
Daniel James
e0dc4fe75d Separate fetching download details, and downloading. 2016-06-16 23:45:44 +01:00
Daniel James
cdf6de6c09 Catch errors when updating website documentation. 2016-06-16 23:45:44 +01:00
Daniel James
ac9dfb9942 Clearer error message. 2016-06-16 23:45:44 +01:00
Daniel James
f66c5ec5f8 Exceptions on errors. 2016-06-16 23:45:44 +01:00
Daniel James
a67f0a3c93 Use 'Process::run' in new code. 2016-06-16 23:45:44 +01:00
Daniel James
557468227d Pass config path as an option. 2016-06-16 23:45:44 +01:00
Daniel James
65303c5996 Standardize directory handling. 2016-06-11 00:56:41 +01:00
Daniel James
7e83d7f2c9 Make all settings things functions. 2016-06-11 00:56:41 +01:00
Daniel James
3c3d856cad Setup logging in EvilGlobals. 2016-06-11 00:21:55 +01:00
Daniel James
352145d715 Process command line options for all scripts. 2016-06-11 00:21:54 +01:00
Daniel James
75ca00f69d Rename the other cron scripts. 2016-06-11 00:21:54 +01:00