The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTTP::Balancer::Role::Command - the mixin for command handlers

SYNOPSIS

    package HTTP::Balancer::Command::SomeCommand;
    use Moose;
    with qw( HTTP::Balancer::Role::Command );

METHODS

prepare()

the instance method called before running.

the method is here to be hooked with 'around' keyword of Moose.

command_name

class and instance method

returns the last name of current command, lowercase, separated with whitespace.

ordinary_args

returns the ordinary arguments for arbitrary command handler.

the method is here to be overrided and returns empty list by default.

argv($position)

helper.

return the ordinary argument at $position or exit with help text.