eu.lindenbaum.maven.erlang
Class UploadReleaseScript

java.lang.Object
  extended by 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

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
UploadReleaseScript(String remoteNode, File releasePackage)
           
 
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
 

Field Detail

script

protected final String script
Constructor Detail

UploadReleaseScript

public UploadReleaseScript(String remoteNode,
                           File releasePackage)
                    throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException
Method Detail

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.