
#                                      Copyright 2024 WebPros International, LLC
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.

package Whostmgr::360Monitoring::Agent::Plugins::Roles::Enableable;

use cPstrict;
use Whostmgr::360Monitoring::Moo;
use Whostmgr::360Monitoring::Types qw(WPBool);
use Moo::Role;

conf_has 'enabled' => (
    isa              => WPBool,
    coerce           => 1,
    default          => 1,
    always_serialize => 1,
);

1;

__END__

=head1 NAME

Whostmgr::360Monitoring::Agent::Plugins::Roles::Enableable - A Moo::Role allowing plugins to be enabled/disabled.

=head1 DESCRIPTION

All plugins are enableable. This just sets whether or not the plugin is active
and will run when agent360 is invoked.

=head1 ATTRIBUTES

=over 15

=item enabled

An attribute representing enabled as defined in the GitHub repo linked in the SEE ALSO. Sourced from INI. Serializes to INI.

=back
