IO-Iron
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/IO/Iron/IronMQ/Client.pm view on Meta::CPAN
$connection->perform_iron_action( IO::Iron::IronMQ::Api::IRONMQ_GET_QUEUE_INFO(), { '{Queue Name}' => $params{'name'}, } );
$self->{'last_http_status_code'} = $http_status_code;
my $info = $response_message;
# {"id":"51be[...]","name":"Log_Test_Queue","size":0,"total_messages":3,"project_id":"51bd[...]"}
$log->debugf( 'Returned info about queue %s.', $params{'name'} );
$log->tracef( 'Exiting get_queue_info: %s', $info );
return $info;
}
sub update_queue {
my $self = shift;
my %params = validate(
@_,
{
'name' => {
type => SCALAR,
callbacks => {
'RFC 3986 reserved character check' => sub { return !IO::Iron::Common::contains_rfc_3986_res_chars(shift) },
}
}, # queue name.
lib/IO/Iron/IronWorker/Client.pm view on Meta::CPAN
$self->{'last_http_status_code'} = $http_status_code;
my @codes;
foreach ( @{$response_message} ) {
push @codes, $_;
}
$log->debugf( 'Returning %d code packages.', scalar @codes );
$log->tracef( 'Exiting list_code_packages: %s', \@codes );
return @codes;
}
sub update_code_package {
my $self = shift;
my %params = validate(
@_,
{
'name' => { type => SCALAR, }, # Code package name.
'file' => {
type => SCALAR,
optional => 1, # The zip archive as a string buffer.
depends => [ 'file_name', 'runtime' ],
},
lib/IO/Iron/IronWorker/Task.pm view on Meta::CPAN
# Returned when queried a queued task:
sub id { return $_[0]->_access_internal( 'id', $_[1] ); }
sub project_id { return $_[0]->_access_internal( 'project_id', $_[1] ); }
sub code_id { return $_[0]->_access_internal( 'code_id', $_[1] ); }
sub status { return $_[0]->_access_internal( 'status', $_[1] ); }
sub code_history_id { return $_[0]->_access_internal( 'code_history_id', $_[1] ); }
sub code_rev { return $_[0]->_access_internal( 'code_rev', $_[1] ); }
sub start_time { return $_[0]->_access_internal( 'start_time', $_[1] ); }
sub end_time { return $_[0]->_access_internal( 'end_time', $_[1] ); }
sub duration { return $_[0]->_access_internal( 'duration', $_[1] ); }
sub updated_at { return $_[0]->_access_internal( 'updated_at', $_[1] ); }
sub created_at { return $_[0]->_access_internal( 'created_at', $_[1] ); }
sub _access_internal {
my ( $self, $var_name, $var_value ) = @_;
$log->tracef( '_access_internal(%s, %s)', $var_name, $var_value );
if ( defined $var_value ) {
$self->{$var_name} = $var_value;
return $self;
}
else {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.102 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )