public function verifyStackExists($stackName, $organization, OutputInterface $output, Image $client = null)
    {
        if (!$client) {
            $client = $this->clientProvider->getImageClient($organization);
        }

        if (!$stackName || !$this->rokkaHelper->stackExists($client, $stackName, $organization)) {
            $output->writeln(
                $this->formatterHelper->formatBlock([
                    'Error!',
                    'Stack "'.$stackName.'"  does not exist on "'.$organization.'" organization!',
                ], 'error', true)
            );

            return false;
        }

        return true;
    }
public function verifyStackExists($stackName, $organization, OutputInterface $output, Image $client = null)
    {
        if (!$client) {
            $client = $this->clientProvider->getImageClient($organization);
        }

        if (!$stackName || !$this->rokkaHelper->stackExists($client, $stackName, $organization)) {
            $output->writeln(
                $this->formatterHelper->formatBlock([
                    'Error!',
                    'Stack "'.$stackName.'"  does not exist on "'.$organization.'" organization!',
                ], 'error', true)
            );

            return false;
        }

        return true;
    }
public function verifyStackExists ( $ stackName , $ organization , OutputInterface $ output , Image $ client = null ) { if ( ! $ client ) { $ client = $ this -> clientProvider -> getImageClient ( $ organization ) ; } if ( ! $ stackName || ! $ this -> rokkaHelper -> stackExists ( $ client , $ stackName , $ organization ) ) { $ output -> writeln ( $ this -> formatterHelper -> formatBlock ( [ 'Error!' , 'Stack "' . $ stackName . '"  does not exist on "' . $ organization . '" organization!' , ] , 'error' , true ) ) ; return false ; } return true ; }
Ensures that the given Stack exists for the input Organization.

@param $stackName
@param $organization
@param OutputInterface $output
@param Image           $client

@return bool
Ensures that the given Stack exists for the input Organization .