The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Ixchel::Actions::auto_cron - Generates a cron file for stuff configured/handled via Ixchel.

VERSION

Version 0.1.0

CLI SYNOPSIS

ixchel -a auto_cron [-w] [-o <file>]

CODE SYNOPSIS

    my $results=$ixchel->action(action=>'auto_cron', opts=>{w=>1});

    if ($results->{ok}) {
        print $results->{filled_in};
    }else{
        die('Action errored... '.joined("\n", @{$results->{errors}}));
    }

DESCRIPTION

The template used is 'auto_cron'.

The returned value is the filled in template..

FLAGS

-w

Write out the file instead of stdout.

-o <file>

File to write the out to if -w is specified.

Default :: /etc/cron.d/ixchel

--np

Don't print the the filled in template.

RESULT HASH REF

    .errors :: A array of errors encountered.
    .status_text :: A string description of what was done and the results.
    .ok :: Set to zero if any of the above errored.
    .filled_in :: The filled in template.