Changeset View
Changeset View
Standalone View
Standalone View
src/future/aws/management/PhutilAWSS3ManagementWorkflow.php
<?php | <?php | ||||
abstract class PhutilAWSS3ManagementWorkflow | abstract class PhutilAWSS3ManagementWorkflow | ||||
extends PhutilAWSManagementWorkflow { | extends PhutilAWSManagementWorkflow { | ||||
protected function getAWSS3BucketArguments() { | protected function getAWSS3BucketArguments() { | ||||
return array( | return array( | ||||
array( | array( | ||||
'name' => 'bucket', | 'name' => 'bucket', | ||||
'param' => 'bucket', | 'param' => 'bucket', | ||||
'help' => pht('Name of the S3 bucket to access.'), | 'help' => pht('Name of the S3 bucket to access.'), | ||||
), | ), | ||||
array( | |||||
'name' => 'endpoint', | |||||
'param' => 'endpoint', | |||||
'help' => pht('Name of the AWS region to access.'), | |||||
), | |||||
); | ); | ||||
} | } | ||||
protected function newAWSFuture($future) { | |||||
$future = parent::newAWSFuture($future); | |||||
$argv = $this->getArgv(); | |||||
$bucket = $argv->getArg('bucket'); | |||||
$future->setBucket($bucket); | |||||
return $future; | |||||
} | |||||
} | } |