GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
App::Sqitch::Config(3) User Contributed Perl Documentation App::Sqitch::Config(3)

App::Sqitch::Config - Sqitch configuration management

  my $config = App::Sqitch::Config->new;
  say scalar $config->dump;

This class provides the interface to Sqitch configuration. It inherits from Config::GitLike, and therefore provides the complete interface of that module.

"confname"

Returns the configuration file base name, which is sqitch.conf.

"system_dir"

Returns the path to the system configuration directory, which is $(prefix)/etc/sqitch/templates. Call "sqitch --etc-path" to find out where, exactly (e.g., "$(sqitch --etc-path)/sqitch.plan").

"user_dir"

Returns the path to the user configuration directory, which is ~/.sqitch/.

"system_file"

Returns the path to the system configuration file. The value returned will be the contents of the $SQITCH_SYSTEM_CONFIG environment variable, if it's defined, or else $(prefix)/etc/sqitch/templates. Call "sqitch --etc-path" to find out where, exactly (e.g., "$(sqitch --etc-path)/sqitch.plan").

"global_file"

An alias for "system_file()" for use by the parent class.

"user_file"

Returns the path to the user configuration file. The value returned will be the contents of the $SQITCH_USER_CONFIG environment variable, if it's defined, or else "~/.sqitch/sqitch.conf".

"local_file"

Returns the path to the local configuration file, which is just ./sqitch.conf, unless $SQITCH_CONFIG is set, in which case its value will be returned.

"dir_file"

An alias for "local_file()" for use by the parent class.

"get_section"

  my $core = $config->get_section(section => 'core');
  my $pg   = $config->get_section(section => 'engine.pg');

Returns a hash reference containing only the keys within the specified section or subsection.

"add_comment"

Adds a comment to the configuration file.

"initial_key"

  my $key = $config->initial_key($data_key);

Given the lowercase key from the loaded data, this method returns it in its original case. This is like "original_key", only in the case where there are multiple keys (for multivalue keys), only the first key is returned.

  • Config::GitLike
  • App::Sqitch::Command::config
  • sqitch-config

David E. Wheeler <david@justatheory.com>

Copyright (c) 2012-2015 iovation Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.