Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Baur
cloudify3
Commits
8b1b3aca
Commit
8b1b3aca
authored
Jun 17, 2015
by
Daniel Baur
Browse files
fixed error in exception...
parent
9a2f5b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ghost-openstack/scripts/ghost/ghost.py
ghost-openstack/scripts/ghost/ghost.py
+6
-6
No files found.
ghost-openstack/scripts/ghost/ghost.py
View file @
8b1b3aca
...
...
@@ -35,9 +35,9 @@ def configure(subject=None):
ctx
.
logger
.
info
(
'Configuring ghost.'
)
_run
(
'sudo apt-get install unzip'
,
'Failed installing unzip'
)
_run
(
'curl -L https://ghost.org/zip/ghost-latest.zip -o ~/ghost.zip'
,
'Failed downloading ghost'
)
_run
(
'unzip -uo ~/ghost.zip -d ~/ghost'
,
'Failed unzipping ghost'
)
_run
(
'sudo apt-get install unzip'
,
error_message
=
'Failed installing unzip'
)
_run
(
'curl -L https://ghost.org/zip/ghost-latest.zip -o ~/ghost.zip'
,
error_message
=
'Failed downloading ghost'
)
_run
(
'unzip -uo ~/ghost.zip -d ~/ghost'
,
error_message
=
'Failed unzipping ghost'
)
template
=
Template
(
ctx
.
get_resource
(
TEMPLATE_RESOURCE_NAME
))
...
...
@@ -62,12 +62,12 @@ def configure(subject=None):
def
start
():
_run
(
'npm install'
,
'Failed running npm install'
)
_run
(
'npm start'
,
'Failed running npm start'
)
_run
(
'npm install'
,
error_message
=
'Failed running npm install'
)
_run
(
'npm start'
,
error_message
=
'Failed running npm start'
)
def
stop
():
_run
(
'sudo killall nodejs'
,
'Failed killing nodejs'
)
_run
(
'sudo killall nodejs'
,
error_message
=
'Failed killing nodejs'
)
def
_run
(
command
,
error_message
):
runner
=
utils
.
LocalCommandRunner
(
logger
=
ctx
.
logger
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment