protected function _parseStdin($stdin) {
        try {
            $values = Zend_Json::decode($stdin);
            // Switch ENV vars to the given values.
            $currentEnv = $this->_updateEnvVars($values);
            // Note: we use "production" here because it's the highest level a config file can
            // support, making sure all required parameters are probably present.
            // Actual credentials will be provided from ENV.
            $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/assets.ini', 'production');
            // Reset ENV vars.
            $this->_updateEnvVars($currentEnv);
            return $config->toArray();
        } catch (Zend_Json_Exception $e) {
            throw new Exception(
                'Data passed thru STDIN needs to be in JSON-format'
            );
        }
    }