sub has_group { exists $_[0]->config->{group}{ $_[1] } }
+sub hosts {
+ my ($self) = @_;
+ my $host_spec = $self->config->{host};
+ return ref($host_spec) ? @$host_spec : $host_spec;
+}
+
+sub user { $_[0]->config->{user} }
+
my $_get_inherited = sub {
my $data = shift;
$data ||= {};