Per Reedtz Thomsen > BBConfig-0.03 > BBConfig::Accounts

Download:
BoxBackup/BBConfig-0.03.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

BBConfig::Accounts - Access to Box Backup account config files

SYNOPSIS ^

  use BoxBackup::Config::Accounts;
  $bbconfig = BoxBackup::Config::Accounts->new();

or

  use BoxBackup::Config::Accounts;
  $file = "/etc/bbox/accounts.txt";
  $bbconfig = BoxBackup::Config::Accounts->new($file);

  @accounts = $bbconfig->getAccountIDs();
  foreach $i (@accounts)
  {
      # Find out what account is on what diskset.
      $disk = $bbconfig->getDisk($i);
  }

ABSTRACT ^

BoxBackup::Config::Accounts is a rather simple package that lets the user have access to the data from the accounts configuration file for Box Backup. It provides methods to retrieve the data only. No creation or editing is supported.

DESCRIPTION ^

Allows for programmatic access to the information stored in the Box Backup 'accounts' config file, which simply holds the mapping between accounts and disk sets.

Methods

AUTHOR Per Reedtz Thomsen (mailto:pthomsen@reedtz.com) ^

syntax highlighting: