eu.lindenbaum.maven.erlang
Class UploadReleaseScript
java.lang.Object
eu.lindenbaum.maven.erlang.UploadReleaseScript
- All Implemented Interfaces:
- Script<GenericScriptResult>
public class UploadReleaseScript
- extends Object
A Script
that uploads a release package into a specific nodes
releases
directory.
Note: The target node process must have write access to its releases
directory in order to be able to execute this script.
- Author:
- Tobias Schlager
Fields inherited from interface eu.lindenbaum.maven.erlang.Script |
NL |
Method Summary |
String |
get()
Returns an evaluateable String containing the erlang script of the
implementing class. |
GenericScriptResult |
handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into a generic result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
script
protected final String script
UploadReleaseScript
public UploadReleaseScript(String remoteNode,
File releasePackage)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
get
public String get()
- Description copied from interface:
Script
- Returns an evaluateable
String
containing the erlang script of the
implementing class.
- Returns:
- An erlang script that can be evaluated.
handle
public GenericScriptResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
- Converts the result of the
Script
execution into a generic result.
- Parameters:
result
- The return term of the Script
execution.
- Returns:
- an instance of
GenericScriptResult
Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.