Changeset View
Changeset View
Standalone View
Standalone View
src/future/aws/management/PhutilAWSManagementWorkflow.php
Context not available. | |||||
$access_key = $argv->getArg('access-key'); | $access_key = $argv->getArg('access-key'); | ||||
$secret_key = $argv->getArg('secret-key'); | $secret_key = $argv->getArg('secret-key'); | ||||
$has_root = (strlen($access_key) || strlen($secret_key)); | $has_root = (@strlen($access_key) || @strlen($secret_key)); | ||||
if ($has_root) { | if ($has_root) { | ||||
if (!strlen($access_key) || !strlen($secret_key)) { | if (!@strlen($access_key) || !@strlen($secret_key)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'When specifying AWS credentials with --access-key and '. | 'When specifying AWS credentials with --access-key and '. | ||||
Context not available. | |||||
} | } | ||||
$region = $argv->getArg('region'); | $region = $argv->getArg('region'); | ||||
if (!strlen($region)) { | if (!@strlen($region)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'You must specify an AWS region with --region.')); | 'You must specify an AWS region with --region.')); | ||||
Context not available. | |||||
$template->setRegion($region); | $template->setRegion($region); | ||||
$endpoint = $argv->getArg('endpoint'); | $endpoint = $argv->getArg('endpoint'); | ||||
if (!strlen($endpoint)) { | if (!@strlen($endpoint)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'You must specify an AWS endpoint with --endpoint.')); | 'You must specify an AWS endpoint with --endpoint.')); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0