~ggouzi/obinstall/obinstall

« back to all changes in this revision

Viewing changes to demos/cloudfoundry/02-push-app.sh

  • Committer: MMorana
  • Date: 2016-03-24 01:18:40 UTC
  • Revision ID: mass@ubuntu.com-20160324011840-blxydmf7ca4ggle0
Splitting out demos from install

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
#
4
 
#    02-push-app.sh
5
 
#    Copyright (C) 2014 Canonical Ltd.
6
 
#
7
 
#    Authors: Darryl Weaver <darryl.weaver@canonical.com>
8
 
#  
9
 
#    This program is free software: you can redistribute it and/or modify
10
 
#    it under the terms of the GNU General Public License as published by
11
 
#    the Free Software Foundation, version 3 of the License.
12
 
#
13
 
#    This program is distributed in the hope that it will be useful,
14
 
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
#    GNU General Public License for more details.
17
 
#
18
 
#    You should have received a copy of the GNU General Public License
19
 
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 
 
21
 
set -e
22
 
 
23
 
source trusty/cloudfoundry/helpers.sh
24
 
echo "trying cflogin"
25
 
 
26
 
cflogin || exit 1
27
 
 
28
 
echo "getting latest github-high-scores app"
29
 
if [ -d github-high-scores ]; then
30
 
        cd github-high-scores
31
 
        git pull
32
 
else
33
 
        git clone https://github.com/bcsaller/github-high-scores
34
 
        cd github-high-scores
35
 
fi
36
 
echo "pushing app to cloudfoundry"
37
 
 
38
 
cf push
39