Skip to content

Instantly share code, notes, and snippets.

@krimdomu
Created March 2, 2015 19:45
Show Gist options
  • Save krimdomu/cd47fd764c8a3b8fc5a7 to your computer and use it in GitHub Desktop.
Save krimdomu/cd47fd764c8a3b8fc5a7 to your computer and use it in GitHub Desktop.
get servers of a task
my ($task) = Rex::TaskList->create()->get_task('taskname');
my @servers_raw = @{ $task->{server} };
my @servers = map { $_->get_servers } @servers_raw;
print Dumper \@servers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment