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

Examples of br.com.ingenieux.mojo.beanstalk.cmd.env.create.CreateEnvironmentContextBuilder


    /*
     * Hey Aldrin, have you ever noticed we're getting pedantic on those validations?
     */
    Validate.isTrue(isNotBlank(newEnvironmentName), "No New Environment Name Supplied");
   
    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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


       
        getLog().info("Using latest available application version " + versionLabel);
      }
    }
   
    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

  protected CreateEnvironmentResult createEnvironment(String cnameToCreate)
      throws MojoFailureException, MojoExecutionException {
    String newEnvironmentName = getEnvironmentName(environmentName);

    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

    /*
     * Hey Aldrin, have you ever noticed we're getting pedantic on those validations?
     */
    Validate.isTrue(isNotBlank(newEnvironmentName), "No New Environment Name Supplied");
   
    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

  protected CreateEnvironmentResult createEnvironment(String cnameToCreate)
      throws MojoFailureException, MojoExecutionException {
    String newEnvironmentName = getEnvironmentName(environmentName);

    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

    /*
     * Hey Aldrin, have you ever noticed we're getting pedantic on those validations?
     */
    Validate.isTrue(isNotBlank(newEnvironmentName), "No New Environment Name Supplied");
   
    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

       
        getLog().info("Using latest available application version " + versionLabel);
      }
    }
   
    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
            .withEnvironmentTierName(environmentTierName)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

    CreateEnvironmentResult result = command.execute(context);
   
View Full Code Here

  protected CreateEnvironmentResult createEnvironment(String cnameToCreate)
      throws AbstractMojoExecutionException {
    String newEnvironmentName = getEnvironmentName(environmentName);

    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

      optionSettings = introspectOptionSettings();
    }

        versionLabel = lookupVersionLabel(applicationName, versionLabel);

    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
            .withEnvironmentTierName(environmentTierName)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

    CreateEnvironmentResult result = command.execute(context);
   
View Full Code Here

       
        getLog().info("Using latest available application version " + versionLabel);
      }
    }
   
    CreateEnvironmentContextBuilder builder = CreateEnvironmentContextBuilder
        .createEnvironmentContext() //
        .withApplicationName(applicationName)//
        .withApplicationDescription(applicationDescription)//
        .withCnamePrefix(cnameToCreate)//
        .withSolutionStack(solutionStack)//
        .withTemplateName(templateName)//
        .withEnvironmentName(newEnvironmentName)//
        .withOptionSettings(optionSettings)//
        .withVersionLabel(versionLabel);//
   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

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

TOP

Related Classes of br.com.ingenieux.mojo.beanstalk.cmd.env.create.CreateEnvironmentContextBuilder

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.