Package br.com.ingenieux.mojo.beanstalk

Examples of br.com.ingenieux.mojo.beanstalk.ConfigurationTemplate


   
    return null;
  }

  CreateConfigurationTemplateResult createConfiguration(String templateName) {
    ConfigurationTemplate template = getConfigurationTemplate(templateName);
   
    CreateConfigurationTemplateRequest req = new CreateConfigurationTemplateRequest(applicationName, templateName);
   
    req.setSolutionStackName(template.getSolutionStack());
    req.setOptionSettings(Arrays.asList(template.getOptionSettings()));
   
    return service.createConfigurationTemplate(req);
  }
View Full Code Here


   
    return null;
  }

  CreateConfigurationTemplateResult createConfiguration(String templateName) {
    ConfigurationTemplate template = getConfigurationTemplate(templateName);
   
    CreateConfigurationTemplateRequest req = new CreateConfigurationTemplateRequest(applicationName, templateName);
   
    req.setSolutionStackName(template.getSolutionStack());
    req.setOptionSettings(Arrays.asList(template.getOptionSettings()));
   
    return service.createConfigurationTemplate(req);
  }
View Full Code Here

   
    return null;
  }

  CreateConfigurationTemplateResult createConfiguration(String templateName) {
    ConfigurationTemplate template = getConfigurationTemplate(templateName);
   
    CreateConfigurationTemplateRequest req = new CreateConfigurationTemplateRequest(applicationName, templateName);
   
    req.setSolutionStackName(template.getSolutionStack());
    req.setOptionSettings(Arrays.asList(template.getOptionSettings()));
   
    return getService().createConfigurationTemplate(req);
  }
View Full Code Here

   
    return null;
  }

  CreateConfigurationTemplateResult createConfiguration(String templateName) throws MojoFailureException {
    ConfigurationTemplate template = getConfigurationTemplate(templateName);

        if (null == template)
            throw new MojoFailureException(String.format("templateName ('%s') not found", templateName));

        if (isBlank(template.getSolutionStack()))
            throw new MojoFailureException(String.format("Please define solutionStack/ in template %s", templateName));

    CreateConfigurationTemplateRequest req = new CreateConfigurationTemplateRequest(applicationName, templateName);
   
    req.setSolutionStackName(template.getSolutionStack());
    req.setOptionSettings(Arrays.asList(template.getOptionSettings()));
   
    return getService().createConfigurationTemplate(req);
  }
View Full Code Here

   
    return null;
  }

  UpdateConfigurationTemplateResult updateConfiguration(String templateName) throws MojoFailureException {
    ConfigurationTemplate template = getConfigurationTemplate(templateName);

        if (null == template)
            throw new MojoFailureException(String.format("templateName ('%s') not found", templateName));

        if (isBlank(template.getSolutionStack()))
            throw new MojoFailureException(String.format("Please define solutionStack/ in template %s", templateName));

    UpdateConfigurationTemplateRequest req = new UpdateConfigurationTemplateRequest(applicationName, templateName);
   
    req.setOptionSettings(Arrays.asList(template.getOptionSettings()));
   
    return getService().updateConfigurationTemplate(req);
  }
View Full Code Here

   
    return null;
  }

  CreateConfigurationTemplateResult createConfiguration(String templateName) {
    ConfigurationTemplate template = getConfigurationTemplate(templateName);
   
    CreateConfigurationTemplateRequest req = new CreateConfigurationTemplateRequest(applicationName, templateName);
   
    req.setSolutionStackName(template.getSolutionStack());
    req.setOptionSettings(Arrays.asList(template.getOptionSettings()));
   
    return getService().createConfigurationTemplate(req);
  }
View Full Code Here

TOP

Related Classes of br.com.ingenieux.mojo.beanstalk.ConfigurationTemplate

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.