Padre::Config::Host - Padre configuration storing host state data


Padre documentation  | view source Contained in the Padre distribution.

Index


NAME

Top

Padre::Config::Host - Padre configuration storing host state data

DESCRIPTION

Top

This class implements the state data of the host on which Padre is running. See Padre::Config for more information on the various types of preferences supported by Padre.

All those state data are stored in a database managed with Padre::DB. Refer to this module for more information on how this works.

PUBLIC API

Top

Constructors

read
    my $config = Padre::Config::Host->read;

Load & return the host configuration from the database. Return undef in case of failure.

No parameters.

Object methods

version
    my $revision = $config->version;

Return the configuration schema revision. Indeed, we might want to change the underlying storage later on.

No parameters.

write
    $config->write;

(Over-)write host configuration to the database.

No parameters.

COPYRIGHT & LICENSE

Top


Padre documentation  | view source Contained in the Padre distribution.