BSD Ports

devel/rubygem-retryable 3.0.5 MidnightBSD

Allow for retrying of code blocks

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, rubygems

Description

Retryable uns a code block, and retries it when an exception occurs. It's great when working with flakey webservices (for example).

It's configured using four optional parameters :tries, :on, :sleep, :matching, :ensure, :exception_cb and runs the passed block. Should an exception occur, it'll retry for (n-1) times.

Should the number of retries be reached without success, the last exception will be raised.

In the other systems

SystemPortVersion
MidnightBSDdevel/rubygem-retryable3.0.5
FreeBSDdevel/rubygem-retryable3.0.5
DragonFlydevel/rubygem-retryable3.0.5
HardenedBSDdevel/rubygem-retryable3.0.5
GhostBSDdevel/rubygem-retryable3.0.5

Install

Binary package:

mport install retryable

From mports:

cd /usr/mports/devel/rubygem-retryable && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	retryable>0:devel/rubygem-retryable

Dependencies

Required by 1

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/retryable-3.0.5.gem13824c9f3dd6836bacf59c08b3f33548416debca7c0757e0c008d35df32ec9266d55f
Master sites 1
  • RG