package Cpanel::Easy::Test::5;

# cpanel - Cpanel/Easy/Test/5.pm                  Copyright(c) 2014 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

my $name = 'test 5';
our $easyconfig = {
    'name' => $name,                          # short lable to describe
    'note' => 'Short bit of FYI type info',

    #    'desc'      => 'Long blob of informative text',
    #    'ensurepkg' => [], # list of packages this opt mod needs (IE suitable for /usr/local/cpanel/scripts/installpkg)
    #    'src_cd2'   => '', # path to cd into to run steps, relative to $self->{'opt_mod_src_dir'}
    'hastargz' => 1,
    'haspatch' => 1,

    #    'meta'      => {
    #        $misc data that steps have access to via $self->{'__'}{'meta'}
    #    },
    #    'url'       => 'http://httpd.apache.org/whatever.html', # URL to get [?] help/more info
    #    'skip'      => 1, # tells the UI and install to not use/do this option
    #    'reverse'   => 1, # tells the UI and install to do the reverse logic with its setting in the save profile
    #    'configure' => {
    #        '--with-foo' => [],
    #        '--with-bar' => ['', 'path'],
    #    }, # set the default configure line if opt mod is a parent (IE apache or PHP) for its kids to modify
    'step' => {
        '0' => {
            'name'    => 'Frabnogizing ' . $name,
            'command' => sub {
                my ($self) = @_;
                for ( 1 .. 10000 ) {
                    $self->print_verbose_aware("Count $_");
                }
                return ( 1, 'ok' );
            },
        },
        '1' => {
            'name'    => 'Nogfrabing ' . $name,
            'command' => sub {
                my ($self) = @_;
                for ( 1 .. 1000 ) {
                    $self->print_verbose_aware("Count $_");
                }
                return ( 1, 'ok' );
            },
        },
    },

    #    'depends', 'dryrun'
};

1;
