__author__ = 'kemi'

# Cloudify Imports
from package_installer_plugin.constants import *
from utils import run
from cloudify import ctx
from cloudify import exceptions
from cloudify.decorators import operation

@operation
def start_service(service_name):
    start_command = START_SERVICE + service_name
    ctx.logger.info('Running command: {0}'.format(start_command))
    run(start_command)


@operation
def stop_service(service_name):
    stop_command = STOP_SERVICE + service_name
    ctx.logger.info('Running command: {0}'.format(stop_command))
    run(stop_command)


@operation
def restart_service(service_name):
    stop_command = RESTART_SERVICE + service_name
    ctx.logger.info('Running command: {0}'.format(stop_command))
    run(stop_command)
@@ -204,16 +204,17 @@
 ration%0A%0A
+%0A
 @operati
@@ -238,32 +238,37 @@
 ice(service_name
+, **_
 ):%0A    start_com
@@ -426,32 +426,37 @@
 ice(service_name
+, **_
 ):%0A    stop_comm
@@ -585,24 +585,24 @@
 %0A@operation%0A
-
 def restart_
@@ -621,16 +621,21 @@
 ice_name
+, **_
 ):%0A    s

clean up