eu.lindenbaum.maven.erlang
Class UploadScript

java.lang.Object
  extended by eu.lindenbaum.maven.erlang.UploadScript
All Implemented Interfaces:
Script<GenericScriptResult>

public class UploadScript
extends Object

A Script that uploads a list of compiled modules and application files onto a specific (remote) node. Modules will be purged ones before loaded, application files will not be written but loaded directly using application:load/1.

Author:
Tobias Schlager

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

UploadScript

public UploadScript(String remoteNode,
                    List<File> beamFiles,
                    List<File> appFiles)
             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 © 2011 Lindenbaum GmbH. All Rights Reserved.