cloud-pipeline
cloud-pipeline copied to clipboard
"pipe update" for one-folder distribution
Implements issue #589 for Linux for folder distributive
Since build_linux.sh builds one-file and one-folder distributive at the same time we should consider this behavior during update operation. To determine the type of distribution we use build.info file which contains such information.
- if this file contains
one-filestringCloud Pipeline CLIwill update current executable file - if this file contains
one-folderstringCloud Pipeline CLIwill update corresponding folder:
- downloads
pipe.tar.gzfrom Cloud Pipeline API into temporary folder~.pipe/tmp - extracts it into temporary folder
~.pipe/tmp - removes all under folder with executable files and copies extracted files into it
- if
build.infofile does not existsCloud Pipeline CLIwill update as in case with single executable file - if
build.infofile exists but contains string that is different fromone-fileorone-foldervalues an error will be occurred.
Added support for el6 Linux distros:
- if
bundle.infofile does not existsCloud Pipeline CLIwill be updated as in case with notcentos6dist - if
bundle.infocontainscentos:6as second lineCloud Pipeline CLIwill be updated forel6linux distr - in other cases
Cloud Pipeline CLIworks as before @sidoruka could you check this changes?