|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drupal.project.computing.DUtils.Drush
public static class DUtils.Drush
This is the utility class to run drush command.
| Constructor Summary | |
|---|---|
DUtils.Drush()
|
|
DUtils.Drush(DConfig config)
|
|
DUtils.Drush(java.lang.String drushExec)
|
|
| Method Summary | |
|---|---|
boolean |
checkComputing()
Check if the "computing" module drush command is available. |
java.lang.String |
computingCall(java.lang.String[] params)
Call any Drupal functions and returns results in json. |
java.lang.String |
computingEval(java.lang.String phpCode)
Run any drupal code and get returns results in json. |
java.lang.String |
execute(java.lang.String[] command)
|
java.lang.String |
execute(java.lang.String[] command,
java.lang.String input)
Execute Drush command, and returns STDOUT results. |
java.util.Properties |
getCoreStatus()
Get Drupal core-status info. |
java.lang.String |
getDrushExec()
|
java.lang.String |
getVersion()
Get Drush version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DUtils.Drush(java.lang.String drushExec)
public DUtils.Drush(DConfig config)
public DUtils.Drush()
| Method Detail |
|---|
public java.lang.String execute(java.lang.String[] command)
throws DConnectionException
DConnectionException
public java.lang.String execute(java.lang.String[] command,
java.lang.String input)
throws DConnectionException
command - The drush command to execute.input - Input stream, could be null.
DConnectionException
public java.lang.String getVersion()
throws DConnectionException
DConnectionExceptionpublic java.lang.String getDrushExec()
public java.util.Properties getCoreStatus()
throws DConnectionException
DConnectionException
public java.lang.String computingEval(java.lang.String phpCode)
throws DConnectionException
phpCode - Should not use ""
DConnectionException
public java.lang.String computingCall(java.lang.String[] params)
throws DConnectionException
params - First param is the function name; the rest are parameters in json.
Callers are responsible to wrap the params in json, but not responsible to escape them as command line args.
DConnectionExceptionpublic boolean checkComputing()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||