> +      return this;
> +   }
> +
> +   public TemplateOptions commands(Iterable<String> commands) {
> +      for (String command : checkNotNull(commands, "commands"))
> +         checkNotNull(command, "all commands must be non-empty");
> +      this.commands = Optional.<List<String>> 
> of(ImmutableList.copyOf(commands));
> +      return this;
> +   }
> +
> +   public TemplateOptions commands(String... commands) {
> +      return commands(ImmutableList.copyOf(checkNotNull(commands, 
> "commands")));
> +   }
> +
> +   public TemplateOptions cpuShares(int cpuShares) {
> +      checkNotNull(cpuShares, "cpuShares was null");

thanks @grkvlt, much cleaner

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r14484314

Reply via email to