Install, update and archive installations of icemac.addressbook.
Project description
icemac.install.addressbook
Scripts to ease the installation and update an existing installation of icemac.addressbook to a new version of the package.
Copyright
Copyright (c) 2016-2017 Michael Howitz
All Rights Reserved.
This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED “AS IS” AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
Installation of the scripts
Install the package icemac.install.addressbook using pip:
$ pip install icemac.install.addressbook
This creates two scripts in the bin directory:
install-addressbook
archive-addressbook
Usage
install-addressbook
Start the script using:
$ bin/install-addressbook [VERSION_NUMBER]
Where VERSION_NUMBER is the number of the version you want to install resp. you want to update to. If you leave it out the newest version is used.
The script executes the following steps:
Download the source distribution of icemac.addressbook to a temporary directory.
Extract the source distribution to the current working directory.
Run the install script. If there is a symlink named current pointing to a previous icemac.addressbook installation it uses its configuration as default answers for the questions in the installation process.
Create or replace the new symlink named current pointing to the new installation.
make-current-addressbook
This script is helpful if you want to switch back to an older installed address book version in case of an error.
Start the script using:
$ bin/make-current-addressbook VERSION_NUMBER
Where VERSION_NUMBER is the number of the version you want to make the current one.
The script executes the following steps:
Create or replace the new symlink named current pointing to the new installation.
archive-addressbook
After installing a new version of the address book you could archive the previous one using this script.
Start the script using:
$ bin/archive-addressbook 4.1
Where 4.1 is the version number of the installation you want to archive.
The script executes the following steps:
Create an archive of the requested icemac.addressbook installation (as installed by install-addressbook) in a directory named archive. (The archive directory is created if it not yet exists.)
Delete the requested icemac.addressbook installation.
Copyright (c) 2016 Michael Howitz All Rights Reserved.
This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED “AS IS” AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
Change log
1.1 (2017-01-07)
Add make-current-addressbook script to ease usage of the current symlink in case of an error.
1.0 (2017-01-06)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for icemac.install.addressbook-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 196fe65ebd30669963dcb855563e87d7b47eafb74fac1a802771b9f3bc8353f0 |
|
MD5 | ff30790cb34eb563608b8b5f7cad25f0 |
|
BLAKE2b-256 | 6447a84d7a346302c14dc2c0183d7228a702f2aafdb8a4160fd365eb564c5e10 |