[COOK-3496] Remove unnecessary ruby block for environment setting