capture origin/<name> of active branch in case remote is not tracked
[scpubgit/System-Introspector.git] / lib / System / Introspector / Gatherer / Bridge.pm
CommitLineData
a5e1e1c6 1package System::Introspector::Gatherer::Bridge;
2use Object::Remote;
3use Object::Remote::Future;
4use Moo;
5
6has remote_spec => (is => 'ro', required => 1);
7has remote_class => (is => 'ro', required => 1);
949dba9c 8has remote_args => (is => 'ro', required => 1);
a5e1e1c6 9has remote => (is => 'lazy');
10
11sub _build_remote {
12 my ($self) = @_;
949dba9c 13 return $self->remote_class
14 ->new::on($self->remote_spec, $self->remote_args);
a5e1e1c6 15}
16
17sub gather { (shift)->remote->gather(@_) }
18
191;
f24afb0e 20
21__END__
22
23=head1 NAME
24
25System::Introspector::Gatherer::Bridge - Bridged Connections
26
27=head1 SEE ALSO
28
29=over
30
31=item L<System::Introspector>
32
33=back
34
35=head1 COPYRIGHT
36
37Copyright (c) 2012 the L<System::Introspector>
38L<AUTHOR|System::Introspector/AUTHOR>,
39L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
40L<SPONSORS|System::Introspector/SPONSORS>.
41
42=head1 LICENSE
43
44This library is free software and may be distributed under the same terms
45as perl itself.
46
47=cut