public class DrushInvocation extends Object
Modifier and Type | Field and Description |
---|---|
protected hudson.EnvVars |
environment |
protected hudson.Launcher |
launcher |
protected hudson.model.TaskListener |
listener |
protected hudson.FilePath |
root |
protected hudson.FilePath |
workspace |
Constructor and Description |
---|
DrushInvocation(hudson.FilePath root,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars environment) |
Modifier and Type | Method and Description |
---|---|
boolean |
coderReview(File outputDir,
Collection<String> reviews,
Collection<String> projectNames,
boolean ignoresPass)
Run a code review.
|
boolean |
download(String projects,
String destination)
Download projects/modules into a destination directory.
|
boolean |
enable(String extensions)
Enable extensions/modules.
|
protected boolean |
execute(hudson.util.ArgumentListBuilder args)
Execute a Drush command.
|
protected boolean |
execute(hudson.util.ArgumentListBuilder args,
hudson.model.TaskListener out)
Execute a Drush command.
|
protected hudson.util.ArgumentListBuilder |
getArgumentListBuilder()
Get default Drush options.
|
protected String |
getDrushExe()
Get Drush executable.
|
protected DrushInstallation |
getDrushInstallation()
Get first Drush installation configured, or null if no installation is configured.
|
Map<String,DrupalExtension> |
getProjects(boolean modulesOnly,
boolean enabledOnly)
Get a map of projects installed on Drupal, keyed by machine name.
|
Collection<DrupalTest> |
getTests()
Get a list of test classes available.
|
boolean |
isModuleInstalled(String name,
boolean enabledOnly)
Check if a module exists / is enabled
|
boolean |
make(File makefile)
Make a Drupal site using a Makefile.
|
boolean |
siteInstall(String db,
String profile)
Install a Drupal site using an installation profile.
|
boolean |
status()
Return true if the site is already installed, false otherwise.
|
boolean |
testRun(File outputDir,
String uri,
Collection<String> targets)
Run tests.
|
boolean |
upDb()
Run update.php.
|
protected final hudson.FilePath root
protected final hudson.FilePath workspace
protected final hudson.Launcher launcher
protected final hudson.model.TaskListener listener
protected final hudson.EnvVars environment
public DrushInvocation(hudson.FilePath root, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars environment)
protected hudson.util.ArgumentListBuilder getArgumentListBuilder()
protected String getDrushExe()
protected DrushInstallation getDrushInstallation()
protected boolean execute(hudson.util.ArgumentListBuilder args) throws IOException, InterruptedException
IOException
InterruptedException
protected boolean execute(hudson.util.ArgumentListBuilder args, hudson.model.TaskListener out) throws IOException, InterruptedException
IOException
InterruptedException
public boolean upDb() throws IOException, InterruptedException
IOException
InterruptedException
public boolean make(File makefile) throws IOException, InterruptedException
IOException
InterruptedException
public boolean siteInstall(String db, String profile) throws IOException, InterruptedException
IOException
InterruptedException
public boolean download(String projects, String destination) throws IOException, InterruptedException
IOException
InterruptedException
public boolean enable(String extensions) throws IOException, InterruptedException
IOException
InterruptedException
public Map<String,DrupalExtension> getProjects(boolean modulesOnly, boolean enabledOnly)
public boolean isModuleInstalled(String name, boolean enabledOnly)
public boolean status()
public Collection<DrupalTest> getTests()
public boolean testRun(File outputDir, String uri, Collection<String> targets) throws IOException, InterruptedException
IOException
InterruptedException
public boolean coderReview(File outputDir, Collection<String> reviews, Collection<String> projectNames, boolean ignoresPass) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2004-2016. All Rights Reserved.