ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/bin/aemp
(Generate patch)

Comparing AnyEvent-MP/bin/aemp (file contents):
Revision 1.52 by root, Fri Mar 2 19:48:18 2012 UTC vs.
Revision 1.53 by root, Sat Mar 3 19:43:41 2012 UTC

602 602
603 "$cert$key" 603 "$cert$key"
604} 604}
605 605
606sub init { 606sub init {
607 configure profile => "aemp", nodeid => "anon/"; 607 configure profile => "aemp", nodeid => "aemp/%n/%u";
608} 608}
609 609
610our $cfg = AnyEvent::MP::Config::config; 610our $cfg = AnyEvent::MP::Config::config;
611our $profile = $cfg; 611our $profile = $cfg;
612 612
950 my $name = shift @ARGV; 950 my $name = shift @ARGV;
951 951
952 print JSON::XS->new->pretty->encode ($cfg->{profile}{$name} || {}); 952 print JSON::XS->new->pretty->encode ($cfg->{profile}{$name} || {});
953 }, 953 },
954 showconfig => sub { 954 showconfig => sub {
955 my $name = @ARGV ? shift @ARGV : AnyEvent::MP::Kernel::_nodename; 955 my $name = @ARGV ? shift @ARGV : AnyEvent::MP::Kernel::nodename;
956 956
957 my $profile = AnyEvent::MP::Config::find_profile $name, @ARGV; 957 my $profile = AnyEvent::MP::Config::find_profile $name, @ARGV;
958 @ARGV = (); 958 @ARGV = ();
959 959
960 # make it look nicer: 960 # make it look nicer:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines