package Cpanel::Easy::Test_IncludeB;

# cpanel - Cpanel/Easy/Test_IncludeB.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 = 'include b';
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,  # see TARBALLS below
    #    '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 .. 5000 ) {
                    $self->print_verbose_aware("Count $_");
                }
                return ( 1, 'ok' );
            },
        },
        '1' => {
            'name'    => 'Nogfrabing ' . $name,
            'command' => sub {
                my ($self) = @_;
                for ( 1 .. 500 ) {
                    $self->print_verbose_aware("Count $_");
                }
                return ( 1, 'ok' );
            },
        },
    },

    #    'depends', 'dryrun'
};

1;
