Package br.com.ingenieux.mojo.beanstalk.cmd.env.update

Examples of br.com.ingenieux.mojo.beanstalk.cmd.env.update.UpdateEnvironmentCommand


        new WaitForEnvironmentCommand(this).execute(new WaitForEnvironmentContextBuilder().withStatusToWaitFor("Ready").withApplicationName(applicationName).withEnvironmentRef(otherEnvId).build());

        getLog().info(format("(Blue) Updating environmentId to version %s", versionLabel));

        new UpdateEnvironmentCommand(this).execute(new UpdateEnvironmentContextBuilder().withEnvironmentId(otherEnvId).withVersionLabel(versionLabel).build());

        getLog().info(format("(Blue) Waiting for environmentId['%s'] to get ready and green prior to switching", otherEnvId));

        new WaitForEnvironmentCommand(this).execute(new WaitForEnvironmentContextBuilder().withStatusToWaitFor("Ready").withApplicationName(applicationName).withHealth("Green").withEnvironmentRef(otherEnvId).build());
View Full Code Here


            lookupTemplateName(applicationName, templateName))//
        .withVersionLabel(versionLabel)//
        .withLatestVersionLabel(curEnv.getVersionLabel())//
        .build();

    UpdateEnvironmentCommand command = new UpdateEnvironmentCommand(this);

    return command.execute(context);
  }
View Full Code Here

          .updateEnvironmentContext()
          .withEnvironmentId(curEnv.getEnvironmentId())//
          .withVersionLabel(versionLabel)//
          .build();
     
      UpdateEnvironmentCommand command = new UpdateEnvironmentCommand(
          this);

      return command.execute(context);
    }

    return super.executeInternal();
  }
View Full Code Here

            lookupTemplateName(applicationName, templateName))//
        .withVersionLabel(versionLabel)//
        .withUseLatestVersionLabel(useLatestVersionLabel)//
        .withLatestVersionLabel(curEnv.getVersionLabel())//
        .build();
    UpdateEnvironmentCommand command = new UpdateEnvironmentCommand(this);

    return command.execute(context);
  }
View Full Code Here

        .withEnvironmentName(curEnv.getEnvironmentName())//
        .withOptionSettings(optionSettings)//
        .withTemplateName(templateName)//
        .withVersionLabel(versionLabel)//
        .build();
    UpdateEnvironmentCommand command = new UpdateEnvironmentCommand(this);

    return command.execute(context);
  }
View Full Code Here

          .updateEnvironmentContext()
          .withEnvironmentId(curEnv.getEnvironmentId())//
          .withVersionLabel(versionLabel)//
          .build();
     
      UpdateEnvironmentCommand command = new UpdateEnvironmentCommand(
          this);

      return command.execute(context);
    }

    return super.executeInternal();
  }
View Full Code Here

TOP

Related Classes of br.com.ingenieux.mojo.beanstalk.cmd.env.update.UpdateEnvironmentCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.