private void DeployRevision() { try { SetStatus("Initiating deployment", false, true); var aws = new AmazonEngine(uxAccessKeyTextBox.Text, uxSecretKeyTextBox.Text); aws.CreateDeployment(uxApplicationComboBox.Text, S3Location, uxDeploymentGroupComboBox.Text); SetStatus("Deployment initiated successfully"); } catch (Exception ex) { MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); SetStatus(string.Empty); } }
private void RefreshAwsDeploymentGroups() { var aws = new AmazonEngine(uxAccessKeyTextBox.Text, uxSecretKeyTextBox.Text); var items = aws.GetDeploymentGroups(uxApplicationComboBox.Text); uxDeploymentGroupComboBox.Items.Clear(); foreach (var item in items) uxDeploymentGroupComboBox.Items.Add(item); if (items.Count > 0) uxDeploymentGroupComboBox.SelectedIndex = 0; }
private void RefreshAwsS3Buckets() { var aws = new AmazonEngine(uxAccessKeyTextBox.Text, uxSecretKeyTextBox.Text); var items = aws.GetS3BucketNames().OrderBy(o => o.ToLowerInvariant()); uxS3BucketComboBox.Items.Clear(); foreach (var item in items) uxS3BucketComboBox.Items.Add(item); if (items.Count() > 0) uxS3BucketComboBox.SelectedIndex = 0; }
private void PushPackage() { try { SetStatus("Pushing revision to Amazon", false, true); var aws = new AmazonEngine(uxAccessKeyTextBox.Text, uxSecretKeyTextBox.Text); aws.DeployPush(uxApplicationComboBox.Text, S3Location, SourceFolder); //MessageBox.Show("Revision successfully pushed to S3 and registered with the application", // this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); SetStatus("Revision successfully pushed to S3 and registered with the application"); } catch (S3KeyAlreadyExistsException ex) { //MessageBox.Show("That file already exists in S3. Consider incrementing the package version.", // this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); SetStatus("That file already exists in S3. Consider incrementing the package version.", true); } catch (Exception ex) { MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); SetStatus(string.Empty); } }