@@ -0,0 +1,1780 @@
+package de.saumya.mojo.bundler;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.maven.plugin.MojoExecutionException;%0Aimport org.sonatype.aether.RepositorySystemSession;%0A%0Aimport de.saumya.mojo.gem.AbstractGemMojo;%0Aimport de.saumya.mojo.ruby.gems.GemException;%0Aimport de.saumya.mojo.ruby.script.Script;%0Aimport de.saumya.mojo.ruby.script.ScriptException;%0A%0A/**%0A * maven wrapper around the bundler update command.%0A * %0A * @goal update%0A */%0Apublic class UpdateMojo extends AbstractGemMojo %7B%0A%0A    /**%0A     * arguments for the bundler command.%0A     * %0A     * @parameter default-value=%22$%7Bbundler.args%7D%22%0A     */%0A    private String            bundlerArgs;%0A    %0A    /**%0A     * bundler version used when there is no pom. defaults to latest version.%0A     * %0A     * @parameter default-value=%22$%7Bbundler.version%7D%22%0A     */%0A    private String            bundlerVersion;%0A%0A    /**%0A     * @parameter default-value=%22$%7BrepositorySystemSession%7D%22%0A     * @readonly%0A     */%0A    private RepositorySystemSession repoSession;%0A%0A    %0A    @Override%0A    public void executeWithGems() throws MojoExecutionException,%0A            ScriptException, IOException, GemException %7B%0A        final Script script = this.factory.newScriptFromSearchPath(%22bundle%22);%0A        script.addArg(%22update%22);%0A        if (this.project.getBasedir() == null) %7B%0A%0A            this.gemsInstaller.installGem(%22bundler%22,%0A                                          this.bundlerVersion,%0A                                          this.repoSession,%0A                                          this.localRepository);%0A%0A        %7D%0A        if (this.bundlerArgs != null) %7B%0A            script.addArgs(this.bundlerArgs);%0A        %7D%0A        if (this.args != null) %7B%0A            script.addArgs(this.args);%0A        %7D%0A%0A        script.executeIn(launchDirectory());%0A    %7D%0A%7D%0A

add bundle update mojo