view release on metacpan or search on metacpan
lib/Consul.pm view on Meta::CPAN
has method => ( is => 'ro', isa => Str, required => 1 );
has url => ( is => 'ro', isa => Str, required => 1 );
has headers => ( is => 'ro', isa => class_type('Hash::MultiValue'), required => 1 );
has content => ( is => 'ro', isa => Str, required => 1 );
has callback => ( is => 'ro', isa => CodeRef, required => 1 );
has args => ( is => 'ro', isa => HashRef, required => 1 );
package
Consul::Response; # hide from PAUSE
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Context/Set/Manager.pm view on Meta::CPAN
use Context::Set::Restriction;
use Context::Set::Union;
use Context::Set::Storage::BlackHole;
has '_localidx' => ( is => 'ro' , isa => 'HashRef[ArrayRef[Context::Set]]', default => sub{ {}; });
has '_fullidx' => ( is => 'ro' , isa => 'HashRef' , default => sub{ {}; } );
has 'universe' => ( is => 'ro' , isa => 'Context::Set' , required => 1 ,
lazy_build => 1 );
has 'storage' => ( is => 'ro', isa => 'Context::Set::Storage' , required => 1,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/AuditAny.pm view on Meta::CPAN
has 'time_zone', is => 'ro', isa => Str, default => sub{'local'};
sub get_dt { DateTime->now( time_zone => (shift)->time_zone ) }
has 'schema', is => 'ro', required => 1, isa => InstanceOf['DBIx::Class::Schema']; #<--- This won't go back to Moose
has 'track_immutable', is => 'ro', isa => Bool, default => sub{0};
has 'track_actions', is => 'ro', isa => ArrayRef, default => sub { [qw(insert update delete)] };
has 'allow_multiple_auditors', is => 'ro', isa => Bool, default => sub{0};
has 'source_context_class', is => 'ro', default => sub{'AuditContext::Source'};
has 'change_context_class', is => 'ro', default => sub{'AuditContext::Change'};
has 'changeset_context_class', is => 'ro', default => sub{'AuditContext::ChangeSet'};
lib/DBIx/Class/AuditAny.pm view on Meta::CPAN
source_context_class change_context_class
changeset_context_class column_context_class
default_datapoint_class collector_class
);
has 'collector_params', is => 'ro', isa => HashRef, default => sub {{}};
has 'primary_key_separator', is => 'ro', isa => Str, default => sub{'|~|'};
has 'datapoint_configs', is => 'ro', isa => ArrayRef[HashRef], default => sub {[]};
has 'auto_include_user_defined_datapoints', is => 'ro', isa => Bool, default => sub{1};
has 'rename_datapoints', is => 'ro', isa => Maybe[HashRef[Str]], default => sub{undef};
has 'disable_datapoints', is => 'ro', isa => ArrayRef, default => sub {[]};
has 'record_empty_changes', is => 'ro', isa => Bool, default => sub{0};
has 'datapoints', is => 'ro', isa => ArrayRef[Str],
default => sub{[qw(
change_ts
action
source
pri_key_value
lib/DBIx/Class/AuditAny.pm view on Meta::CPAN
);
};
# Any sources within the tracked schema that the collector is writing to; these
# sources are not allowed to be tracked because it would create infinite recursion:
has 'log_sources', is => 'ro', isa => ArrayRef[Str], lazy => 1, init_arg => undef, default => sub {
my $self = shift;
return $self->collector->writes_bound_schema_sources;
};
has 'tracked_action_functions', is => 'ro', isa => HashRef, default => sub {{}};
has 'tracked_sources', is => 'ro', isa => HashRef[Str], default => sub {{}};
has 'calling_action_function', is => 'ro', isa => HashRef[Bool], default => sub {{}};
has 'active_changeset', is => 'rw', isa => Maybe[Object], default => sub{undef};
has 'auto_finish', is => 'rw', isa => Bool, default => sub{0};
has 'track_init_args', is => 'ro', isa => Maybe[HashRef], default => sub{undef};
has 'build_init_args', is => 'ro', isa => HashRef, required => 1;
around BUILDARGS => sub {
my $orig = shift;
my $class = shift;
my %opts = (ref($_[0]) eq 'HASH') ? %{ $_[0] } : @_; # <-- arg as hash or hashref
lib/DBIx/Class/AuditAny.pm view on Meta::CPAN
push @configs, @{$self->datapoint_configs};
return @configs;
}
has '_datapoints', is => 'ro', isa => HashRef, default => sub {{}};
has '_datapoints_context', is => 'ro', isa => HashRef, default => sub {{}};
# Also index datapoints by 'original_name' which will be different from 'name'
# whenever 'rename_datapoints' has been applied
has '_datapoints_orig_names', is => 'ro', isa => HashRef, default => sub {{}};
sub get_datapoint_orig { (shift)->_datapoints_orig_names->{(shift)} }
sub add_datapoints {
my $self = shift;
my $class = $self->default_datapoint_class;
lib/DBIx/Class/AuditAny.pm view on Meta::CPAN
return map { $_->name } $self->get_context_datapoints(@_);
}
sub local_datapoint_data { (shift)->base_datapoint_values }
has 'base_datapoint_values', is => 'ro', isa => HashRef, lazy => 1, default => sub {
my $self = shift;
return { map { $_->name => $_->get_value($self) } $self->get_context_datapoints('base') };
};
sub _init_datapoints {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/Migration/Script.pm view on Meta::CPAN
predicate=>'has_to_version',
short => 'V', format => 'i',
);
option sql_translator_args => (
is => 'ro', isa => HashRef,
predicate=>'has_sql_translator_args',
default => sub { +{ quote_identifiers => 1 }},
format => 's%',
);
lib/DBIx/Class/Migration/Script.pm view on Meta::CPAN
predicate=>'has_dbic_fixture_class',
format => 's',
);
option dbic_fixtures_extra_args => (
is => 'ro', isa => HashRef,
predicate=>'has_dbic_fixtures_extra_args',
format => 's%',
);
option dbic_connect_attrs => (
is => 'ro', isa => HashRef,
predicate=>'has_dbic_connect_attrs',
format => 's%',
);
option dbi_connect_attrs => (
is => 'ro', isa => HashRef,
predicate=>'has_dbi_connect_attrs',
format => 's%',
);
option extra_schemaloader_args => (
is => 'ro', isa => HashRef,
predicate=>'has_extra_schemaloader_args',
format => 's%',
);
option fixture_sets => (
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/Schema/Diff/InfoPacket.pm view on Meta::CPAN
with 'DBIx::Class::Schema::Diff::Role::Common';
use Types::Standard qw(:all);
has 'name', required => 1, is => 'ro', isa => Str;
has 'old_info', is => 'ro', isa => Maybe[HashRef], default => sub { undef };
has 'new_info', required => 1, is => 'ro', isa => Maybe[HashRef];
has 'diff_added', is => 'ro', isa => Bool, default => sub { 0 };
has '_source_diff', required => 1, is => 'ro', weak_ref => 1, isa => InstanceOf[
'DBIx::Class::Schema::Diff::Source'
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/StateMigrations.pm view on Meta::CPAN
);
$Migration->execute_routines( $self->connected_schema, $callback )
}
has '__loaded_vagrant_classes', is => 'ro', isa => HashRef, default => sub {{}};
has 'migrations_dir', is => 'ro', default => sub { undef };
has 'connected_schema', is => 'ro', required => 1, isa => InstanceOf['DBIx::Class::Schema'];
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/Wrapper.pm view on Meta::CPAN
=cut
has 'dbic_schema' => ( is => 'rw' , isa => 'DBIx::Class::Schema' , required => 1 );
has 'dbic_factory_baseclass' => ( is => 'ro' , isa => 'Str' , lazy_build => 1);
has '_dbic_dbic_fact_classes' => ( is => 'ro' , isa => 'HashRef[Bool]' , lazy_build => 1);
sub _build_dbic_factory_baseclass{
my ($self) = @_;
return ref ($self).'::Wrapper::Factory';
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/DR/PerlishTemplate.pm view on Meta::CPAN
has close_tag => (is => 'rw', isa => 'Str', default => '%>');
has quote_mark => (is => 'rw', isa => 'Str', default => '=');
has immediate_mark => (is => 'rw', isa => 'Str', default => '==');
has sql => (is => 'ro', isa => 'Str', default => '');
has variables => (is => 'ro', isa => 'ArrayRef');
has template => (is => 'rw', isa => 'Str', default => '');
has template_file => (is => 'rw', isa => 'Str', default => '');
has stashes => (is => 'ro', isa => 'ArrayRef');
has pretokens => (is => 'ro', isa => 'ArrayRef');
has prepretokens => (is => 'ro', isa => 'ArrayRef');
has parsed_template => (is => 'ro', isa => 'Str', default => '');
has namespace => (is => 'rw', isa => 'Str',
default => 'DBIx::DR::PerlishTemplate::Sandbox');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Deployer.pm view on Meta::CPAN
has deployed => ( is => 'rw', isa => Bool, default => 0 );
has verified => ( is => 'rw', isa => Bool, default => 0 );
has name => ( is => 'ro', isa => Str, required => true );
has supports_transactions => ( is => 'ro', isa => Bool, default => true );
has dependencies => ( is => 'ro', isa => Maybe[ArrayRef] );
has deploy_sql => ( is => 'ro', isa => Maybe[Str] );
has deploy_sql_args => ( is => 'rw', isa => Maybe[ArrayRef] );
has deploy_script => ( is => 'ro', isa => Maybe[Str] );
has deploy_script_args => ( is => 'rw', isa => Maybe[ArrayRef] );
has no_verify => ( is => 'ro', isa => Bool, default => false );
has verify_sql => ( is => 'ro', isa => Str );
has verify_sql_args => ( is => 'rw', isa => ArrayRef );
has verify_expects => ( is => 'ro', isa => ArrayRef );
has db => ( is => 'ro', isa => InstanceOf['DBI::db'], required => true );
method deploy {
if($self->deploy_sql && $self->deploy_script) {
$self->handle_error('Patch cannot have both deploy_sql and deploy_script.');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/PgLink/Accessor/BaseAccessor.pm view on Meta::CPAN
has 'remote_object_quoted' => (is=>'rw', isa=>'Str', lazy=>1, default=>sub{ $_[0]->QRIS($_[0]->remote_object) } );
has 'old_accessor' => (is=>'rw', isa=>'DBIx::PgLink::Accessor::BaseAccessor');
has 'skip_on_errors' => (is=>'ro', isa=>'ArrayRef', auto_deref=>1,
default=>sub{ ['cannot drop .* because other objects depend on it']}
);
# -------------------------------------------------------
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DNS/Oterica/Node.pm view on Meta::CPAN
#pod
#pod This is an arrayref of the families in which the node has been placed.
#pod
#pod =cut
has families => (is => 'ro', isa => 'ArrayRef', default => sub { [] });
#pod =method add_to_family
#pod
#pod $node->add_to_family($family);
#pod
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DR/TarantoolQueue.pm view on Meta::CPAN
has ttr => is => 'rw', isa => 'Maybe[Num]';
has pri => is => 'rw', isa => 'Maybe[Num]';
has delay => is => 'rw', isa => 'Maybe[Num]';
has space => is => 'rw', isa => 'Maybe[Str]';
has tube => is => 'rw', isa => 'Maybe[Str]';
has connect_opts => is => 'ro', isa => 'HashRef', default => sub {{}};
has defaults => is => 'ro', isa => 'HashRef', default => sub {{}};
has msgpack => is => 'ro', isa => 'Bool', default => 0;
# еÑли $0 =~ /\.t$/ Ñо бÑÐ´ÐµÑ Ð·Ð°Ð¿ÑÑкаÑÑ ÑейковÑй ÑаÑанÑÑл
has fake_in_test => is => 'ro', isa => 'Bool', default => 1;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dallycot/Context.pm view on Meta::CPAN
# The context for a statement has no parent, but is copied from the kernel's
# context. Changes made are copied back to the kernel context info.
# Closures need to copy all of the info into a new context that is marked as
# a closure.
has namespaces => ( is => 'ro', isa => 'HashRef', default => sub { +{} }, lazy => 1 );
has environment => ( is => 'ro', isa => 'HashRef', default => sub { +{} }, lazy => 1 );
has namespace_search_path => ( is => 'ro', isa => 'ArrayRef', default => sub { [] }, lazy => 1 );
has parent => ( is => 'ro', isa => 'Dallycot::Context', predicate => 'has_parent' );
has is_closure => ( is => 'ro', isa => 'Bool', default => 0 );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dancer2/Logger/LogAny.pm view on Meta::CPAN
use Moo;
with 'Dancer2::Core::Role::Logger';
has category => ( is => 'ro', isa => Str );
has logger => ( is => 'ro', isa => ArrayRef, required => 1 );
has _logger_obj => ( is => 'lazy' );
sub _build__logger_obj {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/CloudWeights.pm view on Meta::CPAN
has 'total_count' => is => 'rwp', isa => Int, default => 0,
documentation => 'Current total for all tags in the cloud';
# Private attributes
has '_index' => is => 'ro', isa => HashRef, default => sub { {} };
has '_sorts' => is => 'ro', isa => HashRef, default => sub { {
alpha => {
asc => sub { my $x = shift; sub { $_[ 0 ]->{ $x } cmp $_[ 1 ]->{ $x } }
},
desc => sub { my $x = shift; sub { $_[ 1 ]->{ $x } cmp $_[ 0 ]->{ $x } }
},
lib/Data/CloudWeights.pm view on Meta::CPAN
asc => sub { my $x = shift; sub { $_[ 0 ]->{ $x } <=> $_[ 1 ]->{ $x } }
},
desc => sub { my $x = shift; sub { $_[ 1 ]->{ $x } <=> $_[ 0 ]->{ $x } }
},
} } };
has '_tags' => is => 'ro', isa => ArrayRef, default => sub { [] };
# Private methods
my $_get_sort_method = sub {
my $self = shift; # Add called multiple times, determine the sorting method
# No sorting if sort field is false
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/Collector.pm view on Meta::CPAN
use Module::Pluggable::Object;
use Class::Load 'try_load_class';
use namespace::autoclean;
has 'format' => ( is => 'ro', isa => 'Str', default => 'JSON' );
has 'format_args' => ( is => 'ro', isa => 'HashRef', default => sub { {} } );
has 'engine' => ( is => 'ro', isa => 'Str', default => 'OpenSSH' );
has 'engine_args' => ( is => 'ro', isa => 'HashRef', default => sub { {} } );
has 'info_args' => ( is => 'ro', isa => 'HashRef', default => sub { {} } );
has 'engine_object' => (
is => 'ro',
isa => 'Object',
lazy_build => 1,
);
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/TestStream.pm view on Meta::CPAN
has aggregator_class => ( is => 'ro', required => 1 );
has new_params => ( is => 'ro', default => sub { {} } );
has aggregator_params => ( is => 'ro', isa => 'HashRef', required => 1 );
has events => ( is => 'ro', isa => 'ArrayRef', required => 1 );
has time_sub => ( is => 'ro' );
has start_time => ( is => 'ro' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/Formula.pm view on Meta::CPAN
')' => {method => 'bracket_right',},
);
has 'variables' => (is => 'rw', isa => 'ArrayRef', default => sub {[]});
has 'formula' => (is => 'ro', isa => 'Str', default => sub {[]});
has '_tokens' => (is => 'ro', isa => 'ArrayRef', lazy_build => 1,);
has '_rpn' => (is => 'ro', isa => 'ArrayRef', lazy_build => 1,);
has '_op_indent' => (is => 'rw', isa => 'Int', default => 0,);
has 'used_variables' => (is => 'ro', isa => 'ArrayRef', lazy_build => 1,);
has 'on_error' => (
is => 'rw',
predicate => 'has_on_error',
clearer => 'clear_on_error',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/MuForm.pm view on Meta::CPAN
form => $self->form,
%{$self->renderer_args},
);
return $renderer;
}
has 'renderer_args' => ( is => 'ro', isa => HashRef, builder => 'build_renderer_args' );
sub build_renderer_args {{}}
has 'render_args' => ( is => 'rw', lazy => 1, isa => HashRef, builder => 'build_render_args' );
sub build_render_args {{}}
sub base_render_args {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/Scan/Impl/Printer.pm view on Meta::CPAN
has buffered => (is => 'ro', isa => Bool, default => sub { return !!0 });
has colors => (is => 'ro', isa => HashRef[Str|Undef], default => sub {
return {
blessed => 'bold',
string => undef,
regexp => undef,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/Validation.pm view on Meta::CPAN
use Try::Tiny;
use Unexpected::Functions qw( FieldComparison ValidationErrors );
use Unexpected::Types qw( HashRef NonZeroPositiveInt );
use Moo;
has 'constraints' => is => 'ro', isa => HashRef, default => sub { {} };
has 'fields' => is => 'ro', isa => HashRef, default => sub { {} };
has 'filters' => is => 'ro', isa => HashRef, default => sub { {} };
has 'level' => is => 'ro', isa => NonZeroPositiveInt, default => 1;
# Private functions
my $_comparisons = sub {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dezi/Indexer/Config.pm view on Meta::CPAN
our $VERSION = '0.016';
# only a few explicitly named attributes.
# everything else is through AUTOLOAD.
has '_orig_args' => ( is => 'ro', isa => HashRef, default => sub { {} } );
has 'file' => ( is => 'rw', isa => 'Path::Class::File', coerce => 1, );
has 'swish3_config' => ( is => 'ro', isa => Str );
my $XML = Search::Tools::XML->new;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Regenerate.pm view on Meta::CPAN
use Path::Tiny 0.017 qw( path );
use namespace::clean -except => 'meta';
with qw/ Dist::Zilla::Role::Plugin Dist::Zilla::Role::Regenerator Beam::Emitter /;
has filenames => ( is => 'ro', isa => 'ArrayRef', default => sub { [] }, );
around dump_config => sub {
my ( $orig, $self, @args ) = @_;
my $config = $self->$orig(@args);
my $payload = $config->{ +__PACKAGE__ } = {};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Breaks.pm view on Meta::CPAN
use namespace::autoclean;
sub mvp_multivalue_args { qw(breaks) }
has breaks => (
is => 'ro', isa => 'HashRef[Str]',
required => 1,
);
around BUILDARGS => sub
{
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/ContributorsFromPod.pm view on Meta::CPAN
being the last C<=head1> section is also fine. This is because we use a
regex to parse out the list from Pod::Text.
=cut
has _contributors => (is => 'ro', isa => ArrayRef[Str], lazy_build => 1);
sub metadata {
my $self = shift;
return $self->_contributors ? { 'x_contributors' => $self->_contributors } : {};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/DistBuild.pm view on Meta::CPAN
return $reqs->requirements_for_module('perl') || '5.006';
},
);
has header_strs => (
is => 'ro', isa => ArrayRef[Str],
traits => ['Array'],
lazy => 1,
default => sub { [] },
documentation => "Additional code lines to include at the beginning of Makefile.PL",
);
lib/Dist/Zilla/Plugin/DistBuild.pm view on Meta::CPAN
}
: () );
}
has footer_strs => (
is => 'ro', isa => ArrayRef[Str],
traits => ['Array'],
lazy => 1,
default => sub { [] },
documentation => "Additional code lines to include at the end of Makefile.PL",
);
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/Breaks.pm view on Meta::CPAN
use Moose;
with 'Dist::Zilla::Role::MetaProvider';
use CPAN::Meta::Requirements;
has breaks => (
is => 'ro', isa => 'HashRef[Str]',
required => 1,
);
around BUILDARGS => sub {
my $orig = shift;
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Git/Contributors.pm view on Meta::CPAN
);
}
# should not be called before the MetaProvider phase
has _contributors => (
is => 'ro', isa => 'ArrayRef[Str]',
lazy => 1,
builder => '_build_contributors',
);
sub _build_contributors
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Git/NextVersion.pm view on Meta::CPAN
# call get magic properly.
return [ sort map /$regexp/ ? try { version->parse("$1") } : (), @$tags ];
} # end _versions_from_tags
has _all_versions => (
is => 'ro', isa => ArrayRef,
init_arg => undef,
lazy => 1,
default => sub {
my $self = shift;
my $v = _versions_from_tags($self->version_regexp, [ $self->git->tag ]);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/GatherFile.pm view on Meta::CPAN
#pod Can be used more than once.
#pod
#pod =cut
has filenames => (
is => 'ro', isa => ArrayRefOfPaths,
lazy => 1,
coerce => 1,
default => sub { [] },
);
view all matches for this distribution