Created
August 18, 2015 09:48
-
-
Save ferki/0a1a186fd376c869b6a5 to your computer and use it in GitHub Desktop.
get servergroup from parameter
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
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