use MooseX::StrictConstructor;
use MooseX::MarkAsMethods ( autoclean => 1 );
use URI;
use JSON qw(decode_json);
use HTTP::Request::Common qw(GET);
use Pinto::Util qw(whine);
use Pinto::Constants qw(
_line;
whine "Stratopan is not responding: $status";
return;
}
my $structs = eval { decode_json($response->content) };
whine "Invalid response from Stratopan: $@" and return if $@;
return un
ackage Pinto::Remote::Action::Add;
use Moose;
use MooseX::MarkAsMethods ( autoclean => 1 );
use JSON;
use Pinto::Util qw(throw);
#------------------------------------------------------------------
sponder for action requests
package Pinto::Server::Responder::Action;
use Moose;
use Carp;
use JSON;
use IO::Pipe;
use IO::Select;
use Try::Tiny;
use File::Temp;
use File::Copy;
use Proc::Fork;
use
ams{chrome} ? decode_json( $params{chrome} ) : {};
my $pinto_args = $params{pinto} ? decode_json( $params{pinto} ) : {};
my $action_args = $params{action} ? decode_json( $params{action} ) :
-----
__PACKAGE__->inflate_column(
'metadata' => {
inflate => sub { CPAN::Meta->load_json_string( $_[0] ) },
deflate => sub { $_[0]->as_string( { version => "2" } ) }
}
);
#-
MooseX::Types::Moose qw(Bool Str Undef);
use String::Format;
use File::Copy ();
use JSON qw(encode_json decode_json);
use Pinto::Util qw(:all);
use Pinto::Types qw(Dir File Version);
use version;
u
inflate_column(
'properties' => {
inflate => sub { decode_json( $_[0] || '{}' ) },
deflate => sub { encode_json( $_[0] || {} ) }
}
);
#----------------------------------------
e MooseX::MarkAsMethods ( autoclean => 1 );
use MooseX::Types::Moose qw(Str Maybe);
use URI;
use JSON;
use HTTP::Request::Common;
use Pinto::Result;
use Pinto::Constants qw(:protocol);
use Pinto::Ut
->chrome->palette,
quiet => $self->chrome->quiet
};
return ( chrome => encode_json($chrome_args) );
}
#---------------------------------------------------------------------------
$self->username,
time_offset => current_time_offset,
};
return ( pinto => encode_json($pinto_args) );
}
#-----------------------------------------------------------------------------