library/Garp/Cli/Command/Aws.php
protected function _profileExists() {
        $homeDir = trim(`echo \$HOME`);
        $config = file_get_contents($homeDir . DIRECTORY_SEPARATOR . self::AWS_CONFIG_LOCATION);
        return strpos($config, "[profile {$this->_profile}]") !== false;
    }
protected function _profileExists() {
        $homeDir = trim(`echo \$HOME`);
        $config = file_get_contents($homeDir . DIRECTORY_SEPARATOR . self::AWS_CONFIG_LOCATION);
        return strpos($config, "[profile {$this->_profile}]") !== false;
    }
protected function _profileExists ( ) { $ homeDir = trim ( `echo \$HOME` ) ; $ config = file_get_contents ( $ homeDir . DIRECTORY_SEPARATOR . self :: AWS_CONFIG_LOCATION ) ; return strpos ( $ config , "[profile {$this->_profile}]" ) !== false ; }
Check if the current profile exists

@return bool
Check if the current profile exists