# Path: blackbelt/deployment.py
# def rollback_production():
# 
#     post_message("Rollback production for all environments (prod, qa, pre)", "#deploy-queue")
# 
#     check_call(['grunt', 'rollback', '--app=apiary-staging-qa'])
#     check_call(['grunt', 'rollback', '--app=apiary-staging-pre'])
#     check_call(['grunt', 'rollback'])


import click
from blackbelt.deployment import (
    rollback_production
)



@click.group(invoke_without_command=True, help="""
    Rollback latest version from production environments (prod, pre, qa)
    """)
def cli():

# Path: blackbelt/deployment.py
# def rollback_production():
# 
#     post_message("Rollback production for all environments (prod, qa, pre)", "#deploy-queue")
# 
#     check_call(['grunt', 'rollback', '--app=apiary-staging-qa'])
#     check_call(['grunt', 'rollback', '--app=apiary-staging-pre'])
#     check_call(['grunt', 'rollback'])


# Path: blackbelt/commands/rollback.py
import click
from blackbelt.deployment import (
    rollback_production
)




@click.group(invoke_without_command=True, help="""
    Rollback latest version from production environments (prod, pre, qa)
    """)
def cli():

    rollback_production()