Ukigumo::Client - Client library for Ukigumo
use Ukigumo::Client; use Ukigumo::Client::VC::Git; use Ukigumo::Client::Executor::Auto; use Ukigumo::Client::Notify::Debug; use Ukigumo::Client::Notify::Ikachan; my $app = Ukigumo::Client->new( vc => Ukigumo::Client::VC::Git->new( branch => $branch, repository => $repo, ), executor => Ukigumo::Client::Executor::Perl->new(), server_url => $server_url, project => $project, ); $app->push_notifier( Ukigumo::Client::Notify::Ikachan->new( url => $ikachan_url, channel => $ikachan_channel, ) ); $app->run();
Ukigumo::Client is client library for Ukigumo.
workdir
Working directory for the code. It's $ENV{HOME}/.ukigumo/work/$project/$branch by default.
$ENV{HOME}/.ukigumo/work/$project/$branch
project
Its' project name. This is a mandatory parameter.
logfh
Log file handle. It's read only parameter.
server_url
URL of the Ukigumo server. It's required.
user_agent
instance of LWP::UserAgent. It's have a default value.
vc
This is a version controller object. It's normally Ukigumo::Client::VC::*. But you can write your own class.
VC::* objects should have a following methods:
get_revision branch repository
executor
This is a test executor object. It's normally Ukigumo::Client::Executor::*. But you can write your own class.
notifiers
This is a arrayref of notifier object. It's normally Ukigumo::Client::Notify::*. But you can write your own class.
push a notifier object to $client->notifiers.
Run a test context.
Send a notification to the sever.
This method runs $command and tee the output of the STDOUT/STDERR to the logfh.
$command
Return: exit code by the $command.
Print $message and write to the logfh.
$message
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
Ukigumo::Server, Ukigumo:https://github.com/ukigumo/
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Ukigumo::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ukigumo::Client
CPAN shell
perl -MCPAN -e shell install Ukigumo::Client
For more information on module installation, please visit the detailed CPAN module installation guide.