private function askForResources(InputInterface $input, OutputInterface $output) {
        $question = new ChoiceQuestion(
            'Which resources should the public key have access to? ',
            [
                self::RESOURCES_READ_ONLY,
                self::RESOURCES_READ_WRITE,
                self::RESOURCES_ALL,
                self::RESOURCES_SPECIFIC,
                self::RESOURCES_CUSTOM,
            ],
            self::RESOURCES_SPECIFIC
        );

        $type = $this->getHelper('question')->ask($input, $output, $question);
        switch ($type) {
            case self::RESOURCES_READ_ONLY:
                return Resource::getReadOnlyResources();
            case self::RESOURCES_READ_WRITE:
                return Resource::getReadWriteResources();
            case self::RESOURCES_ALL:
                return Resource::getAllResources();
            case self::RESOURCES_CUSTOM:
                return $this->askForCustomResources($input, $output);
        }

        return $this->askForSpecificResources($input, $output);
    }