Skip to content

Instantly share code, notes, and snippets.

@ferki
Created August 18, 2015 09:48
Show Gist options
  • Save ferki/0a1a186fd376c869b6a5 to your computer and use it in GitHub Desktop.
Save ferki/0a1a186fd376c869b6a5 to your computer and use it in GitHub Desktop.
get servergroup from parameter
use Rex -base;
use Getopt::Long;
my $buildserver;
GetOptions( 'buildserver=s' => \$buildserver );
group buildserver => $buildserver;
task 'a',
group => 'buildserver',
sub {
say run 'uptime';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment