Bug 766408
Summary: | 1. Client workflow automation - update local spec to latest revision from server | ||
---|---|---|---|
Product: | [Community] PressGang CCMS | Reporter: | Joshua Wulf <jwulf> |
Component: | CSProcessor | Assignee: | Joshua Wulf <jwulf> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.x | CC: | jwulf, lcarlon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-03-23 08:31:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 766406 | ||
Bug Blocks: | 766412 |
Description
Joshua Wulf
2011-12-12 01:16:48 UTC
This requires the csprocessor.cfg file described in bug 766406 (dependency of this bug). Put the script above into something like ~/skynet/refreshlocal Edit the SKYNETCLIENTCMD to point to your local skynet client Make it executable with "chmod 755 refreshlocal" Put an alias in ~/.bashrc: Something like: alias refreshlocal='~/skynet/refreshlocal' Run "source ~/.bashrc" Now just run "refreshlocal" where your csprocessor.cfg file is located, and it will overwrite your local content spec with the latest from the server. You should run this after pushing an updated spec to the server, to get the latest revision number. ***WARNING*** If you push a modified content spec and it fails, then running "refreshlocal" will overwrite your local changes. Be aware of this, and make sure that the push was successful before you run this command. #!/bin/bash # Updated for cspclient-package-provided csprocessor SKYNETCLIENTCMD=csprocessor DIR=`pwd` CONFFILE=csprocessor.cfg if [ ! -f $CONFFILE ] then echo "Cannot find $CONFFILE. Exiting." exit 2 else source $CONFFILE fi if [ -z "$SPECID" ] then echo "Please set a value for SPECID in $CONFFILE" exit 3 fi if [ -z "$SPECNAME" ] then echo "Please set a value for SPECNAME in $CONFFILE" exit 3 fi $SKYNETCLIENTCMD pull -c $SPECID --post -o post-$SPECNAME.spec Implemented by 796009 *** This bug has been marked as a duplicate of bug 796009 *** |