Changeset 4206 for lang/perl/Config-Pit

Show
Ignore:
Timestamp:
01/08/08 16:26:09 (7 years ago)
Author:
cho45
Message:

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

update doc

Files:
1 modified

Legend:

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

    r4202 r4206  
    88use File::Spec; 
    99use File::Util; 
     10use File::Temp; 
    1011use List::MoreUtils qw(all); 
    11 use File::Temp; 
    1212 
    1313our $VERSION      = '0.01'; 
     
    9191  use Config::Pit; 
    9292 
     93  my $config = Config::Pit->get("twitter.com", require => { 
     94    "username" => "your username on twitter", 
     95    "password" => "your password on twitter" 
     96  }); 
     97  # if the fields are not set, open setting by $EDITOR 
     98  # with YAML-dumped default values (specified at C<require>). 
     99 
     100  # use $config->{username}, $config->{password} 
     101 
    93102=head1 DESCRIPTION 
    94103 
    95 Config::Pit is 
     104Config::Pit is account setting management library. 
     105Original library is written in Ruby and published as pit gem with management command. 
     106You can install it by rubygems: 
     107 
     108  $ sudo gem install pit 
     109  $ pit set twitter.com 
     110  # open setting of twitter.com with $EDITOR. 
    96111 
    97112=head1 AUTHOR 
     
    106121=head1 SEE ALSO 
    107122 
     123L<pit gem|http://lowreal.rubyforge.org/pit/> 
     124 
    108125=cut