Esempio 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));
 }
Esempio 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()));
 }
Esempio n. 3
0
 public function main()
 {
     parent::main();
     $client = $this->getAwsClient()->createS3();
     $client->putObject(array('Bucket' => $this->getBucket(), 'Key' => $this->getObject(), 'SourceFile' => $this->getSource()));
 }