Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Created July 21, 2016 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickanderson/90b25f9e66dbcd2d5292d79e142a03be to your computer and use it in GitHub Desktop.
Save nickanderson/90b25f9e66dbcd2d5292d79e142a03be to your computer and use it in GitHub Desktop.
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