Skip to content
Permalink
Browse files

Revert "OOPS"

This reverts commit 6b613a6.
  • Loading branch information...
Vladimir Melnik
Vladimir Melnik committed Jan 2, 2016
1 parent 6b613a6 commit 28b2e1b834491fdc306cb4376359035b74344ebd
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/bin/dev/pod2md.pl
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/bin/vminfo.pl
@@ -0,0 +1,76 @@
# NAME

MonkeyMan - Apache CloudStack Management Framework

# SYNOPSIS

```perl
MonkeyMan->new(
app_code => \&MyCoolApplication,
parse_parameters => {
'l|line=s' => 'what_to_say'
}
);
sub MyCoolApplication {
my $mm = shift;
$mm->get_logger->debugf("We were asked to say '%s'",
$mm->get_parameters->what_to_say
);
}
```

# METHODS

- new()

This method initializes the framework and runs the application.

There are a few parameters that can (and need to) be defined:

- app\_code => CodeRef

MANDATORY. The reference to the subroutine that will do all the job.

- app\_name => Str

MANDATORY. The application's full name.

- app\_description => Str

MANDATORY. The application's description.

- app\_version => Str

MANDATORY. The application's version number.

- app\_usage\_help => Str

Optional. The text to be displayed when the user asks for help.

- parameters\_to\_get => HashRef

This attribute requires a reference to a hash containing parameters to be
passed to the `Getopt::Long->GetOptions()` method (on the left
corresponding names of sub-methods to get values of startup parameters. It
creates the `parameters` method which returns a reference to the
`MonkeyMan::Parameters` object containing the information of startup
parameters accessible via corresponding methods. Thus,

```perl
parameters_to_get => {
'i|input=s' => 'file_in',
'o|output=s' => 'file_out'
}
```

will create `MonkeyMan::Parameters` object with `file_in` and `file_out`
methods, so you could address them as

```
$monkeyman->get_parameters->file_in,
$monkeyman->get_parameters->file_out
```
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Cache.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Command.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Configuration.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Element/Domain.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Element/VirtualMachine.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Essentials.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/API/Roles/Element.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/Configuration.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/CloudStack/Essentials.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/Configuration.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/Constants.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/Essentials.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/Exception.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/Roles/WithTimer.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MonkeyMan/Utils.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MooseX/Handies.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/lib/MooseX/Handies/Role/Meta/Attribute.pm
@@ -0,0 +1 @@
https://metacpan.org/pod//home/mmkeeper/monkeyman/t/test0001.pl
@@ -0,0 +1,70 @@
# NAME

MonkeyMan - Apache CloudStack Management Framework

# SYNOPSIS

MonkeyMan->new(
app_code => \&MyCoolApplication,
parse_parameters => {
'l|line=s' => 'what_to_say'
}
);

sub MyCoolApplication {

my $mm = shift;

$mm->get_logger->debugf("We were asked to say '%s'",
$mm->get_parameters->what_to_say
);

}

# METHODS

- new()

This method initializes the framework and runs the application.

There are a few parameters that can (and need to) be defined:

- app\_code => CodeRef

MANDATORY. The reference to the subroutine that will do all the job.

- app\_name => Str

MANDATORY. The application's full name.

- app\_description => Str

MANDATORY. The application's description.

- app\_version => Str

MANDATORY. The application's version number.

- app\_usage\_help => Str

Optional. The text to be displayed when the user asks for help.

- parameters\_to\_get => HashRef

This attribute requires a reference to a hash containing parameters to be
passed to the `Getopt::Long->GetOptions()` method (on the left
corresponding names of sub-methods to get values of startup parameters. It
creates the `parameters` method which returns a reference to the
`MonkeyMan::Parameters` object containing the information of startup
parameters accessible via corresponding methods. Thus,

parameters_to_get => {
'i|input=s' => 'file_in',
'o|output=s' => 'file_out'
}

will create `MonkeyMan::Parameters` object with `file_in` and `file_out`
methods, so you could address them as

$monkeyman->get_parameters->file_in,
$monkeyman->get_parameters->file_out

0 comments on commit 28b2e1b

Please sign in to comment.
You can’t perform that action at this time.