許家瑋 > HTTP-Balancer-0.0.2 > HTTP::Balancer::Role::Command

Download:
HTTP-Balancer-0.0.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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.

syntax highlighting: