Skip to content

Instantly share code, notes, and snippets.

@krimdomu
Created September 12, 2012 16:09
Show Gist options
  • Save krimdomu/3707750 to your computer and use it in GitHub Desktop.
Save krimdomu/3707750 to your computer and use it in GitHub Desktop.
use perl arrays for group concatenation
my @group1 = qw/host1 host2 host3/;
my @group2 = qw/srv1 srv2 srv3/;
group one => @group1;
group two => @group2;
group all => @group1, @group2;
task "prepare", group => "all", sub {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment