Changeset 4274 for lang/perl/Config-Pit

Show
Ignore:
Timestamp:
01/09/08 17:35:22 (5 years ago)
Author:
cho45
Message:

lang/perl/Config-Pit/trunk/lib/Config/Pit.pm:

use example.com instead of twitter.com

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Config-Pit/trunk/lib/Config/Pit.pm

    r4260 r4274  
    121121  use Config::Pit; 
    122122 
    123   my $config = pit_get("twitter.com", require => { 
    124     "username" => "your username on twitter", 
    125     "password" => "your password on twitter" 
     123  my $config = pit_get("example.com", require => { 
     124    "username" => "your username on example", 
     125    "password" => "your password on example" 
    126126  }); 
    127127  # if the fields are not set, open setting by $EDITOR 
     
    137137 
    138138  $ sudo gem install pit 
    139   $ pit set twitter.com 
    140   # open setting of twitter.com with $EDITOR. 
     139  $ pit set example.com 
     140  # open setting of example.com with $EDITOR. 
    141141 
    142142=over 
     
    146146Get setting named C<setting_name> from current profile. 
    147147 
    148   my $config = Config::Pit::get("twitter.com"); 
     148  my $config = Config::Pit::get("example.com"); 
    149149 
    150150This is same as below: 
    151151 
    152   my $config = pit_get("twitter.com"); 
     152  my $config = pit_get("example.com"); 
    153153 
    154154opts: 
     
    158158=item require 
    159159 
    160   my $config = pit_get("twitter.com", require => { 
    161     "username" => "your username on twitter", 
    162     "password" => "your password on twitter" 
     160  my $config = pit_get("example.com", require => { 
     161    "username" => "your username on example.com", 
     162    "password" => "your password on example.com" 
    163163  }); 
    164164 
     
    172172Set setting named C<setting_name> to current profile. 
    173173 
    174   Config::Pit::set("twitter.com"); #=> will open setting with $EDITOR 
     174  Config::Pit::set("example.com"); #=> will open setting with $EDITOR 
    175175 
    176176opts: 
     
    180180=item data 
    181181 
    182   Config::Pit::set("twitter.com", data => { 
     182  Config::Pit::set("example.com", data => { 
    183183    username => "foobar", 
    184184    password => "barbaz", 
     
    192192 
    193193 
    194   Config::Pit::set("twitter.com", config => { 
     194  Config::Pit::set("example.com", config => { 
    195195    username => "config description or default value", 
    196196    password => "same as above",