# Path: cloudify_agent/installer/operations.py
# def create(cloudify_agent, installer, **_):
# def configure(cloudify_agent, installer, **_):
# def start(cloudify_agent, **_):
# def stop(cloudify_agent, installer, **_):
# def delete(cloudify_agent, installer, **_):
# def restart(cloudify_agent, installer, **_):


from cloudify.decorators import operation
from cloudify_agent.installer import operations

"""
This module maintains backwards compatibility with Compute node types
version < 3.3.
"""



@operation
def install(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)
    operations.create(**kwargs)
    operations.configure(**kwargs)


@operation
def start(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)
    operations.start(**kwargs)


@operation
def stop(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)
    operations.stop(**kwargs)


@operation
def restart(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)

# Path: cloudify_agent/installer/operations.py
# def create(cloudify_agent, installer, **_):
# def configure(cloudify_agent, installer, **_):
# def start(cloudify_agent, **_):
# def stop(cloudify_agent, installer, **_):
# def delete(cloudify_agent, installer, **_):
# def restart(cloudify_agent, installer, **_):


# Path: windows_agent_installer/tasks.py
from cloudify.decorators import operation
from cloudify_agent.installer import operations


"""
This module maintains backwards compatibility with Compute node types
version < 3.3.
"""



@operation
def install(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)
    operations.create(**kwargs)
    operations.configure(**kwargs)


@operation
def start(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)
    operations.start(**kwargs)


@operation
def stop(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)
    operations.stop(**kwargs)


@operation
def restart(**kwargs):
    _fix_winrm_port_for_old_windows_blueprints(kwargs)

    operations.restart(**kwargs)