From e71a441a81f6f1d7e61fdb3c07e2f48ee10ba97d Mon Sep 17 00:00:00 2001 From: franck cuny Date: Tue, 8 Jun 2010 15:31:32 +0200 Subject: move code to appropriate role --- lib/Net/HTTP/Console.pm | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'lib/Net/HTTP/Console.pm') diff --git a/lib/Net/HTTP/Console.pm b/lib/Net/HTTP/Console.pm index 2036b47..eef3ba8 100644 --- a/lib/Net/HTTP/Console.pm +++ b/lib/Net/HTTP/Console.pm @@ -4,7 +4,6 @@ our $VERSION = 0.01; use MooseX::Declare; class Net::HTTP::Console { - use Try::Tiny; with 'MooseX::Getopt'; with 'Net::HTTP::Console::Role::Headers'; @@ -16,25 +15,6 @@ class Net::HTTP::Console { has url => (isa => 'Str', is => 'rw', predicate => 'has_url'); has format => (isa => 'Str', is => 'rw', predicate => 'has_format'); has format_mode => (isa => 'Str', is => 'rw', predicate => 'has_format_mode'); - - method dispatch ($input) { - my $result; - try { - foreach ($self->all_plugins) { - last if ($result = $_->dispatch($input)); - } - }catch{ - print "[ERROR]: ".$_; - }; - } - - method new_anonymous_method ($http_method, $path) { - $self->api_object->meta->add_net_api_method( - 'anonymous', - method => $http_method, - path => $path, - ); - } } 1; -- cgit v1.2.3