| 1 | package App::SD::Replica::debbugs; | ||
| 2 | use Any::Moose; | ||
| 3 | extends qw/App::SD::ForeignReplica/; | ||
| 4 | |||
| 5 | use Params::Validate qw(:all); | ||
| 6 | use Memoize; | ||
| 7 | |||
| 8 | use Prophet::ChangeSet; | ||
| 9 | |||
| 10 | use constant scheme => 'debbugs'; | ||
| 11 | |||
| 12 | # FIXME: what should this actually be? | ||
| 13 | has debbugs => ( isa => 'Net::Debbugs', is => 'rw'); | ||
| 14 | has remote_url => ( isa => 'Str', is => 'rw'); | ||
| 15 | has debbugs_query => ( isa => 'Str', is => 'rw'); | ||
| 16 | |||
| 17 | =head2 BUILD | ||
| 18 | |||
| 19 | Open a connection to the source identified by C<$self->{url}>. | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | sub BUILD { | ||
| 24 | my $self = shift; | ||
| 25 | |||
| 26 | # require any specific libs needed by this foreign replica | ||
| 27 | |||
| 28 | # parse the given url | ||
| 29 | # my ($foo, $bar, $baz) = $self->{url} =~ m/regex-here/ | ||
| 30 | |||
| 31 | # ... | ||
| 32 | } | ||
| 33 | |||
| 34 | sub record_pushed_transactions {} | ||
| 35 | |||
| 36 | __PACKAGE__->meta->make_immutable; | ||
| 37 | no Any::Moose; | ||
| 38 | 1; |