#pragma once
#include <saas/deploy_manager/scripts/common/script.h>
#include <saas/deploy_manager/scripts/common/scripts_helper.h>
#include <saas/deploy_manager/scripts/cluster/cluster_task.h>
#include <saas/library/daemon_base/actions_engine/controller_script.h>
#include <saas/library/searchmap/slots_pool.h>

#define RELEASE_TASK_TYPE "RELEASE_TASK"

namespace NRTYDeploy {

    class TReleaseTask : public TClusterTask {
    private:
        NSearchMapParser::TSlotsPool Slots;
        bool Deploy;
        bool DeployProxies;
    public:
        TReleaseTask(const TVector<TString>& slots, const TClusterTask::TCgiContext& context, NRTYDeploy::ICommonData* commonData, bool deploy, bool deployProxies);
        virtual void DoBuildTask() override;
    };

}
