view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Credential/OAuth.pm view on Meta::CPAN
use namespace::autoclean;
our $VERSION = '0.04';
has debug => ( is => 'ro', isa => Bool );
has providers => ( is => 'ro', isa => HashRef, required => 1 );
has ua => ( is => 'ro', lazy_build => 1, init_arg => undef, isa => 'LWP::UserAgent' );
sub BUILDARGS {
my ($self, $config, $c, $realm) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Credential/RedmineCookie.pm view on Meta::CPAN
use IPC::Open2;
use JSON::MaybeXS qw(:legacy);
use POSIX ":sys_wait_h";
has cmd => ( is => 'ro', isa => 'Str|ArrayRef', required => 1 );
# /jails/logserver/usr/local/lib/ruby/gems/2.6/gems/rack-1.6.11/lib/rack/session/cookie.rb
# https://qiita.com/labocho/items/32efc5b7c73aba3500ff
my $pid;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Credential/RedmineCookie.pm view on Meta::CPAN
use IPC::Open2;
use JSON::MaybeXS qw(:legacy);
use POSIX ":sys_wait_h";
has cmd => ( is => 'ro', isa => 'Str|ArrayRef', required => 1 );
# /jails/logserver/usr/local/lib/ruby/gems/2.6/gems/rack-1.6.11/lib/rack/session/cookie.rb
# https://qiita.com/labocho/items/32efc5b7c73aba3500ff
my $pid;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Store/CouchDB.pm view on Meta::CPAN
use Moose 2.00;
use Catalyst::Exception;
has 'store_user_class' => (is => 'ro', isa => 'Str', default => 'Catalyst::Authentication::Store::CouchDB::User', );
has 'config' => (is => 'ro', isa => 'HashRef', required => 1, );
# Convert the parameters passed to ->new into the correct
# format for passing to our Moose generated constructor.
# Also, ensure that the user class is loaded.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Store/Crowd/User.pm view on Meta::CPAN
package Catalyst::Authentication::Store::Crowd::User;
use Moose;
extends 'Catalyst::Authentication::User';
has 'info' => (is => 'ro', isa => 'HashRef');
sub id { shift->get('name'); }
sub supported_features { return { session => 1 }; }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Store/Proxy.pm view on Meta::CPAN
required => 1,
isa => 'Str',
lazy => 1,
builder => '_build_user_class'
);
has handles => ( is => 'ro', isa => 'HashRef' );
has config => ( is => 'ro', isa => 'HashRef' );
has app => ( is => 'ro', isa => 'ClassName' );
has realm => ( is => 'ro' );
sub BUILDARGS {
my ( $class, $config, $app, $realm ) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Controller/AutoAssets.pm view on Meta::CPAN
has 'no_logs', is => 'rw', isa => 'Bool', default => sub {1};
has '_module_version', is => 'ro', isa => 'Str', default => $VERSION;
# Save the build params (passed to constructor)
has '_build_params', is => 'ro', isa => 'HashRef', required => 1;
around BUILDARGS => sub {
my ($orig, $class, $c, @args) = @_;
my %params = (ref($args[0]) eq 'HASH') ? %{ $args[0] } : @args; # <-- arg as hash or hashref
$params{_build_params} = {%params};
return $class->$orig($c,\%params);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Controller/Public.pm view on Meta::CPAN
our $VERSION = '0.004';
has show_debugging => (is=>'ro', required=>1, default=>sub {0});
has cache_control => (is=>'ro', isa=>'Str', predicate=>'has_cache_control');
has content_types => (is=>'ro', isa=>'ArrayRef[Str]', predicate=>'has_content_types');
has chain_base_action => (is=>'ro', isa=>'Str', predicate=>'has_chain_base_action');
has chain_pathpart => (is=>'ro', isa=>'Str', predicate=>'has_chain_pathpart');
has at => (
is=>'ro',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Controller/SimpleCAS.pm view on Meta::CPAN
my $c = $self->_app;
# Default Cas Store path if none was supplied in the config:
return dir( Catalyst::Utils::home($c), 'cas_store' )->stringify;
});
has store_args => ( is => 'ro', isa => 'HashRef', lazy => 1, default => sub {
my $self = shift;
return {
store_dir => $self->store_path,
};
});
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Helper/Model/DBIC/Schema.pm view on Meta::CPAN
=cut
has helper => (is => 'ro', isa => 'Catalyst::Helper', required => 1);
has create => (is => 'rw', isa => CreateOption);
has args => (is => 'ro', isa => ArrayRef);
has traits => (is => 'rw', isa => ArrayRef);
has schema_class => (is => 'ro', isa => Str, required => 1);
has loader_args => (is => 'rw', isa => HashRef);
has connect_info => (is => 'rw', isa => HashRef);
has old_schema => (is => 'rw', isa => Bool, lazy_build => 1);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Model/DBIx/Connector.pm view on Meta::CPAN
has dsn => ( is => 'ro', isa => 'Str', required => 1 );
has username => ( is => 'ro', isa => 'Str' );
has password => ( is => 'ro', isa => 'Str' );
has options => ( is => 'ro', isa => 'HashRef' );
has connector => ( is => 'ro', isa => 'DBIx::Connector', lazy_build => 1, handles => [qw( dbh )] );
sub _build_connector {
my ( $self ) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Model/FormFu.pm view on Meta::CPAN
use namespace::clean -except => 'meta';
extends 'Catalyst::Model';
with 'Catalyst::Component::InstancePerContext';
has model_stash => ( is => 'ro', isa => 'HashRef' );
has constructor => ( is => 'ro', isa => 'HashRef', default => sub { {} } );
has context_stash => ( is => 'ro', isa => 'Str', default => 'context' );
has config_callback => ( is => 'ro', isa => 'Bool', default => 1 );
has forms => ( is => 'ro', isa => 'HashRef' );
has cache => ( is => 'ro', isa => 'HashRef', builder => '_build_cache' );
has languages_from_context => ( is => 'ro', isa => 'Bool', default => 0 );
has localize_from_context => ( is => 'ro', isa => 'Bool', default => 0 );
has default_action_use_name => ( is => 'ro', isa => 'Bool', default => 0 );
has default_action_use_path => ( is => 'ro', isa => 'Bool', default => 0 );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/Authorization/ACL/Engine.pm view on Meta::CPAN
use Tree::Simple::Visitor::GetAllDescendents;
use Carp qw/croak/;
use List::Util 'first';
has app => (is => 'rw');
has actions => (is => 'ro', isa => 'HashRef', default => sub { {} });
has _app_actions_tree => (is => 'ro', isa => 'Tree::Simple', lazy_build => 1);
our $DENIED = bless {}, __PACKAGE__ . "::Denied";
our $ALLOWED = bless {}, __PACKAGE__ . "::Allowed";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/ComponentRole/InjectionHelpers.pm view on Meta::CPAN
has _version => (is=>'ro', required=>1);
has application => (is=>'ro', required=>1);
has from => (is=>'ro', isa=>'ClassName|CodeRef', required=>1);
has method => (is=>'ro', required=>1, default=>'new');
has injected_component_name => (is=>'ro', isa=>'Str', required=>1);
has injection_parameters => (is=>'ro', isa=>'HashRef', required=>1);
has get_config => (is=>'ro', isa=>'CodeRef', required=>1, default=>sub {sub { +{} }});
has roles => (is=>'ro', isa=>'ArrayRef', required=>1, default=>sub { +[] });
has transform_args => (is=>'ro', isa=>'CodeRef', predicate=>'has_transform_args');
has composed_class => (
is=>'ro',
init_arg=>undef,
required=>1,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Request.pm view on Meta::CPAN
$self->env->{'net.async.http.server.req'} &&
$self->env->{'net.async.http.server.req'}->stream) ## Until I can make ioasync cabal see the value of supportin psgix.io (jnap)
|| die "Your Server does not support psgix.io";
};
has data_handlers => ( is=>'ro', isa=>'HashRef', default=>sub { +{} } );
has body_data => (
is=>'ro',
lazy=>1,
builder=>'_build_body_data');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/View/SVG/TT/Graph.pm view on Meta::CPAN
our $VERSION = 0.0226;
has 'format' => ( is => 'ro', isa => 'Str', default => 'svg' );
has 'chart_conf' => ( is => 'ro', isa => 'HashRef', default => sub {{}} );
has 't' => ( is => 'ro', isa => 'MIME::Types', default => sub { MIME::Types->new } );
=head1 NAME
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/Controller/Auth.pm view on Meta::CPAN
has view => ( is => 'ro', isa => 'Str', default => 'TT' );
has realm => ( is => 'ro', isa => 'Str', default => 'default' );
has login_fields => ( is => 'ro', isa => 'HashRef', default => sub { { default => [ qw(username password) ] } } );
has login_id_field => ( is => 'ro', isa => 'Str', default => 'username' );
has login_id_db_field => ( is => 'ro', isa => 'Str', default => 'username' );
has db_id_field => ( is => 'ro', isa => 'Str', default => 'id' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/Utils/DoesHttpException.pm view on Meta::CPAN
use namespace::clean -except => 'meta';
with 'CatalystX::Utils::DoesHttpException';
has resource => (is=>'ro', required=>1);
has allowed_methods => (is=>'ro', isa=>'ArrayRef[Str]', required=>1);
has attempted_method => (is=>'ro', isa=>'Str', required=>1);
sub status { 405 }
sub error { "invalid method '@{[ $_[0]->attempted_method ]}' }
sub message {
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/MyApp/Data/Manager.pm view on Meta::CPAN
extends 'Data::Manager';
use MyApp::Data::Visitor;
has _input => ( is => 'ro', isa => 'HashRef', init_arg => 'input' );
has actions => (
is => 'ro',
isa => 'HashRef',
default => sub { +{} },
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/OpenSearch/CQL.pm view on Meta::CPAN
use namespace::clean;
use feature qw(signatures);
no warnings qw(experimental::signatures);
has parser => (is => 'lazy', init_arg => undef);
has mapping => (is => 'ro', isa => HashRef, required => 1);
has id_key => (is => 'ro', isa => NonEmptyStr, required => 1);
my $RE_ANY_FIELD = qr'^(srw|cql)\.(serverChoice|anywhere)$'i;
my $RE_MATCH_ALL = qr'^(srw|cql)\.allRecords$'i;
my $RE_DISTANCE_MODIFIER = qr'\s*\/\s*distance\s*<\s*(\d+)'i;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ceph/RadosGW/Admin/HTTPRequest.pm view on Meta::CPAN
has 'path' => ( is => 'ro', isa => 'Str', required => 1 );
has 'access_key' => ( is => 'ro', isa => 'Str', required => 1 );
has 'secret_key' => ( is => 'ro', isa => 'Str', required => 1 );
has 'headers' =>
( is => 'ro', isa => 'HashRef', required => 0, default => sub { {} } );
has 'content' =>
( is => 'ro', isa => 'Str|CodeRef', required => 0, default => '' );
has 'metadata' =>
( is => 'ro', isa => 'HashRef', required => 0, default => sub { {} } );
__PACKAGE__->meta->make_immutable;
# make the HTTP::Request object
sub http_request {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Chart/GGPlot/Built.pm view on Meta::CPAN
use Types::Standard qw(ArrayRef ConsumerOf);
use Chart::GGPlot::Types qw(:all);
has data => ( is => 'ro', isa => ArrayRef [DataFrame] );
has prestats_data => ( is => 'ro', isa => ArrayRef [DataFrame] );
has layout => ( is => 'ro', isa => ConsumerOf['Chart::GGPlot::Layout'] );
has plot => ( is => 'ro', isa => ConsumerOf['Chart::GGPlot::Plot'] );
method layer_data ( $i = 0 ) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Cheater/AST.pm view on Meta::CPAN
use Moose;
use Clone qw(clone);
sub process_table ($$$$$$$);
has 'goals' => (is => 'ro', isa => 'HashRef');
has 'cols' => (is => 'ro', isa => 'HashRef');
has 'deps' => (is => 'ro', isa => 'HashRef');
has 'types' => (is => 'ro', isa => 'HashRef');
has 'tables' => (is => 'ro', isa => 'HashRef');
has 'col_clones' => (is => 'ro', isa => 'HashRef');
around BUILDARGS => sub {
my $orig = shift;
my $class = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/Usul.pm view on Meta::CPAN
# Public attributes
has 'config' => is => 'lazy', isa => ConfigProvider,
builder => sub { $_[ 0 ]->config_class->new( $_[ 0 ]->_config_attr)},
init_arg => undef;
has '_config_attr' => is => 'ro', isa => HashRef, builder => sub { {} },
init_arg => 'config';
has 'config_class' => is => 'ro', isa => LoadableClass, coerce => TRUE,
default => 'Class::Usul::Config';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CloudCron/TargetInput.pm view on Meta::CPAN
package CloudCron::TargetInput;
use Moose;
use JSON;
has command => (is => 'ro', isa => 'Str', required => 1);
has env => (is => 'ro', isa => 'HashRef[Str]', required => 0, default => sub { {} });
has type => (is => 'ro', isa => 'Str', required => 0, default => sub { 'shell' });
sub json {
my $self = shift;
return to_json({
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CCfn.pm view on Meta::CPAN
package CCfnX::Meta::Attribute::Trait::Attachable {
use Moose::Role;
use CCfnX::Deployment;
Moose::Util::meta_attribute_alias('Attachable');
has type => (is => 'ro', isa => 'Str', required => 1);
has generates_params => (is => 'ro', isa => 'ArrayRef[Str]', required => 1);
sub get_info {
my ($self, $name, $key) = @_;
die "Please specify a name for Attachment " . $self->name if (not defined $name);
my $dep = CCfnX::Deployment->new_with_roles({ name => $name }, 'CCfnX::CloudFormationDeployer', 'CCfnX::PersistentDeployment');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CloudHealth/API/Call/CreatePartnerCustomer.pm view on Meta::CPAN
has address => (is => 'ro', isa => Dict[street1 => Str, street2 => Str, city => Str, state => Str, zipcode => Int, country => Str], required => 1);
has classification => (is => 'ro', isa => Str);
has trial_expiration_date => (is => 'ro', isa => Str);
has billing_contact => (is => 'ro', isa => Str);
has partner_billing_configuration => (is => 'ro', isa => Dict[enabled => Str, folder => Maybe[Str]]);
has tags => (is => 'ro', isa => ArrayRef[Dict[key => Str, value => Str]]);
sub _body_params { [
{ name => 'name' },
{ name => 'address' },
{ name => 'classification' },
view all matches for this distribution
view release on metacpan or search on metacpan
bin/cloudhealth view on Meta::CPAN
my @params = @{ $self->argv };
shift @params;
my $arg_parser = ARGV::Struct->new(argv => [ '{', @params, '}' ]);
return $arg_parser->parse;
});
has argv => (is => 'ro', isa => ArrayRef, required => 1);
has ch => (is => 'ro', lazy => 1, default => sub { CloudHealth::API->new });
has credentials_detected => (is => 'ro', isa => Bool, lazy => 1, default => sub {
my $self = shift;
$self->ch->credentials->is_set;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Config/Model/AnyId.pm view on Meta::CPAN
my @common_int_params = qw/min_index max_index max_nb auto_create_ids/;
has \@common_int_params => ( is => 'ro', isa => 'Maybe[Int]' );
my @common_hash_params = qw/default_with_init/;
has \@common_hash_params => ( is => 'ro', isa => 'Maybe[HashRef]' );
my @common_list_params = qw/allow_keys default_keys auto_create_keys/;
has \@common_list_params => (
is => 'ro',
isa => 'KeyArray',
lib/Config/Model/AnyId.pm view on Meta::CPAN
my %args = @_;
my %h = map { ( $_ => $args{$_} ); } grep { defined $args{$_} } @allowed_warp_params;
return $class->$orig( backup => dclone( \%h ), @_ );
};
has [qw/backup cargo/] => ( is => 'ro', isa => 'HashRef', required => 1 );
has warp => ( is => 'ro', isa => 'Maybe[HashRef]' );
has [qw/morph/] => ( is => 'ro', isa => 'Bool', default => 0 );
has content_warning_list => ( is => 'rw', isa => 'ArrayRef', default => sub { []; } );
has [qw/cargo_class max_index index_class index_type/] =>
( is => 'rw', isa => 'Maybe[Str]' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Config/Versioned.pm view on Meta::CPAN
use Data::Dumper;
use DateTime;
use Git::PurePerl;
use Path::Class;
has 'path' => ( is => 'ro', isa => 'ArrayRef', default => sub { [qw( . )] } );
has 'filename' => ( is => 'ro', isa => 'Str' );
has 'dbpath' =>
( is => 'ro', default => 'cfgver.git', required => 1 );
has 'author_name' => ( is => 'ro', isa => 'Str', default => "process: $@" );
has 'author_mail' => (
view all matches for this distribution