App-HistHub
view release on metacpan or search on metacpan
lib/App/HistHub.pm view on Meta::CPAN
package App::HistHub;
use Moose;
our $VERSION = '0.01';
use POE qw/
Wheel::FollowTail
Component::Client::HTTPDeferred
/;
use JSON::XS ();
use HTTP::Request::Common;
use Fcntl ':flock';
has hist_file => (
is => 'rw',
isa => 'Str',
required => 1,
);
has tailor => (
is => 'rw',
isa => 'POE::Wheel::FollowTail',
);
has ua => (
is => 'rw',
isa => 'POE::Component::Client::HTTPDeferred',
lazy => 1,
default => sub {
POE::Component::Client::HTTPDeferred->new;
},
);
has json_driver => (
is => 'rw',
isa => 'JSON::XS',
lazy => 1,
default => sub {
JSON::XS->new->latin1;
},
);
has poll_delay => (
is => 'rw',
isa => 'Int',
default => sub { 5 },
);
has update_queue => (
is => 'rw',
isa => 'ArrayRef',
default => sub { [] },
);
has api_endpoint => (
is => 'rw',
isa => 'Str',
required => 1,
);
has api_uid => (
is => 'rw',
isa => 'Str',
);
=head1 NAME
App::HistHub - Sync shell history between multiple PC.
=head1 SYNOPSIS
( run in 0.640 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )