opensas/openshift — Issue #2: develop check_openshift_app() function
Author: opensas
Created: 2011-11-09 15:17:05+00:00
State: open
Labels: develop

looks for and openshift/app/.git folder
if it's there return ok

if exists openshift folder
error, openshift folder exists, delete it

mkdir openshift
cd openshift

rhc-user-info -p redsas -a
check app is not created
if app is created - git clone remote repo
git clone ....
else
check application contains non-alphanumeric characters!
in that case, show error, configure openshift.application in application.conf

rhc-create-app -t jbossas-7.0 -a

possible errors:
RESULT:
opensas@gmail.com has already reached the application limit of 5

cd -a
rm -fr src pom.xml

git add -A
git commit -m "remove useless app"
-- git push - not necessary, but desirable

cd ..
cd ..