Group
Extension

Matches 2

Net-Jenkins ( C/CO/CORNELIUS/Net-Jenkins-0.07.tar.gz, CORNELIUS, 2012; MetaCPAN )
Net-Jenkins/lib/Net/Jenkins.pm ( view source; MetaCPAN )
Net::Jenkins::Job::Build;
use Net::HTTP;
use LWP::UserAgent;
use Moose;
use methods;
use URI;
use JSON;

has scheme => ( is => 'rw', isa => 'Str', default => 'http' );

has host => ( 
            is =
{
    return $self->user_agent->get($uri);
}

method get_json ( $uri ) {
    my $response = $self->user_agent->get($uri);
    return decode_json $response->decoded_content if $response->is_success;
}

method summary {
    my $uri = $self->get_base_url . '/api/json';
    return $self->get_json( $uri );
}

method mode {
    return $self->summary->{mode};
}

method jobs {
    return map { Net::Jenkin
Net-Jenkins ( C/CO/CORNELIUS/Net-Jenkins-0.07.tar.gz, CORNELIUS, 2012; MetaCPAN )
Net-Jenkins/lib/Net/Jenkins/Utils.pm ( view source; MetaCPAN )
 = shift;
    my $uri = URI->new( $build_url );

    # http://ci.jruby.org/job/jruby-git/4259/api/json
    my ($job_name,$build_id) = 
        ($build_url =~ m{/job/([^/]+)/([^/]+)});


    my ($job_u

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.