public class BlowdryerSetup extends Object
Configures where Blowdryer.file(String) downloads files from.
| Modifier and Type | Class and Description |
|---|---|
class |
BlowdryerSetup.Bitbucket |
static class |
BlowdryerSetup.BitbucketType |
static class |
BlowdryerSetup.GitAnchorType |
class |
BlowdryerSetup.GitHub |
class |
BlowdryerSetup.GitLab |
| Constructor and Description |
|---|
BlowdryerSetup(File referenceDirectory)
Pass in the directory that will be used to resolve string arguments to devLocal.
|
| Modifier and Type | Method and Description |
|---|---|
BlowdryerSetup.Bitbucket |
bitbucket(String repoOrg,
BlowdryerSetup.GitAnchorType anchorType,
String anchor)
Sets the source where we will grab these scripts.
|
void |
devLocal(Object devPath)
Sets the source to be the given local folder, usually for developing changes before they are pushed to git.
|
void |
experimental(groovy.lang.Closure<String> function)
Sets the mapping from
file(String) to immutableUrl(String). |
void |
experimental(Function<String,String> function)
Sets the mapping from
file(String) to immutableUrl(String). |
BlowdryerSetup.GitHub |
github(String repoOrg,
BlowdryerSetup.GitAnchorType anchorType,
String anchor)
Sets the source where we will grab these scripts.
|
BlowdryerSetup.GitLab |
gitlab(String repoOrg,
BlowdryerSetup.GitAnchorType anchorType,
String anchor)
Sets the source where we will grab these scripts.
|
void |
localJar(File jarFile)
Uses the provided
jarFile to extract a file resource. |
void |
repoSubfolder(String repoSubfolder)
Default value is
src/main/resources. |
public BlowdryerSetup(File referenceDirectory)
Pass in the directory that will be used to resolve string arguments to devLocal.
public void repoSubfolder(String repoSubfolder)
Default value is src/main/resources. If you change, you must change as the first call.
The nice thing about the default src/main/resources is that if you ever want to, you could
copy the blowdryer code into your blowdryer repo, and deploy your own plugin that pulls resources
from the local jar rather than from github. Keeping the default lets you switch to that approach
in the future without moving your scripts.
public BlowdryerSetup.GitHub github(String repoOrg, BlowdryerSetup.GitAnchorType anchorType, String anchor)
Sets the source where we will grab these scripts.
public BlowdryerSetup.GitLab gitlab(String repoOrg, BlowdryerSetup.GitAnchorType anchorType, String anchor)
Sets the source where we will grab these scripts.
public BlowdryerSetup.Bitbucket bitbucket(String repoOrg, BlowdryerSetup.GitAnchorType anchorType, String anchor)
Sets the source where we will grab these scripts.
public void localJar(File jarFile)
Uses the provided jarFile to extract a file resource.
jarFile - Absolute path to JAR on the file system.public void experimental(groovy.lang.Closure<String> function)
Sets the mapping from file(String) to immutableUrl(String).
public void experimental(Function<String,String> function)
Sets the mapping from file(String) to immutableUrl(String).
public void devLocal(Object devPath)
Sets the source to be the given local folder, usually for developing changes before they are pushed to git.