-
-
Save nickanderson/90b25f9e66dbcd2d5292d79e142a03be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle agent main | |
{ | |
methods: | |
"init" usebundle => init; | |
"test" usebundle => test; | |
} | |
bundle agent init | |
{ | |
files: | |
"$(this.promise_dirname)/seadragon-4.28.0-service.zip" | |
create => "true"; | |
} | |
bundle agent test | |
{ | |
vars: | |
"standalone_directory_listing" | |
slist => lsdir("$(this.promise_dirname)","seadragon.*","false"); | |
"standalone_directory_string" | |
string => nth(standalone_directory_listing, 0); | |
"new_SD_version" | |
data => data_regextract("seadragon-(?<capture>.*)-service.zip", $(standalone_directory_string) ); | |
reports: | |
"Note how new_SD_version iterates:"; | |
"$(new_SD_version)"; | |
"If you only want the named capture: $(new_SD_version[capture])"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment