Exemplo n.º 1
0
 public function main()
 {
     parent::main();
     $client = $this->getAwsClient()->createElasticBeanstalk();
     $client->createApplicationVersion(array("ApplicationName" => $this->getApplication(), "VersionLabel" => $this->getVersion(), "Description" => "Deploy app {$this->getApplication} at version {$this->getVersion()} on date " . date('Ymd H:i:s'), "SourceBundle" => array("S3Bucket" => $this->getBucket(), "S3Key" => $this->getObject()), "AutoCreateApplication" => false));
 }
Exemplo n.º 2
0
 public function main()
 {
     parent::main();
     $client = $this->getAwsClient()->createS3();
     $client->getObject(array('Bucket' => $this->getBucket(), 'Key' => $this->getObject(), 'SaveAs' => is_dir($this->getTarget()) ? $this->getTarget() . $this->getObject() : $this->getTarget()));
 }
Exemplo n.º 3
0
 public function main()
 {
     parent::main();
     $client = $this->getAwsClient()->createS3();
     $client->putObject(array('Bucket' => $this->getBucket(), 'Key' => $this->getObject(), 'SourceFile' => $this->getSource()));
 }