The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Bif::Client - client for communication with a bif hub

VERSION

0.1.0_22 (2014-05-10)

SYNOPSIS

use strict;
my $ctx = App::bif::Context->new( {} );
my $client = Bif::Client->new(
db => $ctx->dbw,
location => $LOCATION,
);
# Bif::Client is a Coro::Handle user so you want
# to do things inside a coroutine
async {
$client->register;
};
AnyEvent->condvar->recv;

DESCRIPTION

Bif::Client is a class for communicating with a bif hub.

CONSTRUCTOR

Bif::Client->new( db => $dbh, hub => $location )

ATTRIBUTES

db
debug
child
child_watcher
debug_bs
hub_id
location
updates_sent
updates_recv
on_update
rh
wh
json
on_error

METHODS

register
sync_hub($hub_id)

Compares the hub_related_updates table in the local repository against the same table on the hub and exchanges updates until they are the same. This method only results in project-only updates.

import_project
sync_project
export_project
disconnect

SEE ALSO

Bif::Server

AUTHOR

Mark Lawrence <nomad@null.net>

COPYRIGHT AND LICENSE

Copyright 2014 Mark Lawrence <nomad@null.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.