Commit 8b1b3aca authored by Daniel Baur's avatar Daniel Baur
Browse files

fixed error in exception...

parent 9a2f5b31
...@@ -35,9 +35,9 @@ def configure(subject=None): ...@@ -35,9 +35,9 @@ def configure(subject=None):'Configuring ghost.')'Configuring ghost.')
_run('sudo apt-get install unzip','Failed installing unzip') _run('sudo apt-get install unzip',error_message='Failed installing unzip')
_run('curl -L -o ~/','Failed downloading ghost') _run('curl -L -o ~/',error_message='Failed downloading ghost')
_run('unzip -uo ~/ -d ~/ghost','Failed unzipping ghost') _run('unzip -uo ~/ -d ~/ghost',error_message='Failed unzipping ghost')
template = Template(ctx.get_resource(TEMPLATE_RESOURCE_NAME)) template = Template(ctx.get_resource(TEMPLATE_RESOURCE_NAME))
...@@ -62,12 +62,12 @@ def configure(subject=None): ...@@ -62,12 +62,12 @@ def configure(subject=None):
def start(): def start():
_run('npm install','Failed running npm install') _run('npm install',error_message='Failed running npm install')
_run('npm start','Failed running npm start') _run('npm start',error_message='Failed running npm start')
def stop(): def stop():
_run('sudo killall nodejs','Failed killing nodejs') _run('sudo killall nodejs',error_message='Failed killing nodejs')
def _run(command, error_message): def _run(command, error_message):
runner = utils.LocalCommandRunner(logger=ctx.logger) runner = utils.LocalCommandRunner(logger=ctx.logger)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment