view release on metacpan or search on metacpan
lib/InfluxDB.pm view on Meta::CPAN
$self->status($res);
return $res->is_success ? 1 : ();
}
sub update_database_user {
state $rule = Data::Validator->new(
name => { isa => 'Str' },
password => { isa => 'Str', optional => 1 },
admin => { isa => 'JSONBool', optional => 1 },
)->with('Method');
lib/InfluxDB.pm view on Meta::CPAN
$self->status($res);
return $res->is_success ? 1 : ();
}
sub update_cluster_admin {
state $rule = Data::Validator->new(
name => { isa => 'Str' },
password => { isa => 'Str' },
)->with('Method');
my($self, $args) = $rule->validate(@_);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/InfoSys/FreeDB/Connection.pm view on Meta::CPAN
return( InfoSys::FreeDB::Response::Stat->new_from_content_ref(
$content_ref
) );
}
sub update {
throw Error::Simple("ERROR: InfoSys::FreeDB::Connection::update, call this method in a subclass that has implemented it.");
}
sub ver {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Installer/Target.pm view on Meta::CPAN
$export_sh .= ("#" x 60)."\n";
io($export_filename)->print($export_sh);
chmod(0755,$export_filename);
}
sub update_env {
my ( $self ) = @_;
my %seen = defined $self->meta->{seen_dirs}
? %{$self->meta->{seen_dirs}}
: ();
if (!$seen{'bin'} and -e $self->target_path('bin')) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Interchange/Search/Solr/UpdateIndex.pm view on Meta::CPAN
Requires C<$mode> parameter which is either I<full>
or I<delta>.
=cut
sub update {
my ($self, $mode) = @_;
my ($update_url, $command, $request, $response);
# reset status line
$self->_set_status_line('');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Interchange6/Schema/Base/Attribute.pm view on Meta::CPAN
$base->update_attribute('hair_color', 'brown');
=cut
sub update_attribute_value {
my ($self, $attr, $attr_value) = @_;
my $base = $self->result_source->source_name;
my ($attribute, $attribute_value) = $self->find_or_create_attribute($attr, $attr_value);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Interchange6/Cart.pm view on Meta::CPAN
L<Interchange6::Cart::Product/id> or C<index> where C<index> is
the zero-based index of the product within L</products>.
=cut
sub update {
my ( $self, @args ) = @_;
my @products;
ARGS: while ( @args > 0 ) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JBD/Core/Db.pm view on Meta::CPAN
#/ @param JBD::Core::Db $this
#/ @param scalar $table A database table
#/ @param arrayref $columns Column names to update
#/ @param arrayref $clauses Where clauses
#/ @param arrayref $values Column values
sub update {
die 'Missing required args' if @_ < 5;
my ($this, $table, $columns, $clauses, $values) = @_;
$this->execute(update_query($table, $columns, $clauses), $values);
}
lib/JBD/Core/Db.pm view on Meta::CPAN
#/ @param scalar $table A database table
#/ @param arrayref $columns Column names to update
#/ @param arrayref $clauses Column names for the where clauses
#/ @return scalar Update query SQL
sub update_query($$$) {
my ($table, $columns, $clauses) = @_;
my $updates = join ',', map "$_=?", @$columns;
my $where = join ' AND ', @$clauses;
'UPDATE ' . $table . ' SET ' . $updates . ' WHERE ' . $where;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JIRA/Client/Automated.pm view on Meta::CPAN
L<https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-put>
=cut
sub update_issue {
my ($self, $key, $field_update_hash, $update_verb_hash) = @_;
my $cur_issue = $self->get_issue( $key );
my $project = $cur_issue->{fields}{project}{key};
my $issuetype = $cur_issue->{fields}{issuetype}{name};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JIRA/Client.pm view on Meta::CPAN
}
}
}
sub update_issue
{
my ($self, $issue, $params) = @_;
my $key;
if (is_instance($issue => 'RemoteIssue')) {
$key = $issue->{key};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JIRA/REST/Class/Issue.pm view on Meta::CPAN
#pod
#pod Puts an update to JIRA. Accepts a hash of fields => values to be put.
#pod
#pod =cut
sub update {
my $self = shift;
my $hash = {};
while ( @_ ) {
my $field = shift;
my $value = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JMAP/Tester.pm view on Meta::CPAN
#pod JMAP::Tester object, and in futures mode will return a future that will resolve
#pod to the Result.
#pod
#pod =cut
sub update_client_session ($self, $auth_uri = undef) {
my $future = $self->_get_client_session_future($auth_uri)->then(sub {
my ($auth) = @_;
$self->configure_from_client_session($auth->client_session);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JSAN/Mini.pm view on Meta::CPAN
The C<update_mirror> static method creates and executes a new L<JSAN::Mini>
object using the default params, normally pretty much Doing What You Mean.
=cut
sub update_mirror {
my $class = shift;
my $self = $class->new(@_);
$self->run;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JaM/GUI.pm view on Meta::CPAN
);
1;
}
sub update_folder_limit {
my $self = shift; $self->trace_in;
my %par = @_;
my ($folder_object) = @par{'folder_object'};
if ( not $folder_object ) {
view all matches for this distribution
view release on metacpan or search on metacpan
Build/Tasks.pm view on Meta::CPAN
=back
=cut
sub update_prop_file {
my %args = @_;
my $name = delete $args{NAME}
or _my_croak "You didn't supply a NAME to update_prop_file";
my $new_props = delete $args{NEW_PROPS}
or _my_croak "You didn't supply a NEW_PROPS to update_prop_file";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Java/JCR/Node.pm view on Meta::CPAN
if ($@) { my $e = Java::JCR::Exception->new($@); croak $e }
return $result;
}
sub update {
my $self = shift;
my @args = Java::JCR::Base::_process_args(@_);
my $result = eval { $self->{obj}->update(@args) };
if ($@) { my $e = Java::JCR::Exception->new($@); croak $e }
view all matches for this distribution
view release on metacpan or search on metacpan
Tree/Numbered/DB.pm view on Meta::CPAN
}
return $deleted;
}
# <update> updates the database when something changes.
sub update {
my $self = shift;
my @values = (map { $self->getField($_) }
@{ $self->getFieldNames } );
$self->{Statements}->{update}->execute(@values, $self->getNumber);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Jifty/DBI/Handle.pm view on Meta::CPAN
might have C<< value => 'PASSWORD(string)' >>, by setting C<is_sql_function> to true,
that string will be inserted into the query directly rather then as a binding.
=cut
sub update_record_value {
my $self = shift;
my %args = (
table => undef,
column => undef,
is_sql_function => undef,
lib/Jifty/DBI/Handle.pm view on Meta::CPAN
If IS_SQL is set, don't quote the NEW_VALUE.
=cut
sub update_table_value {
my $self = shift;
## This is just a wrapper to update_record_value().
my %args = ();
$args{'table'} = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Jifty/Config.pm view on Meta::CPAN
Takes an application's configuration as a hashref. Right now, it just sets up
plugins that match an older jifty version's defaults
=cut
sub update_config {
my $self = shift;
my $config = shift;
my $version = $config->{'framework'}->{'ConfigFileVersion'};
my $plugins = ($config->{'framework'}->{'Plugins'} ||= []);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Job/Machine/DB.pm view on Meta::CPAN
my $retval = $sth->fetch()->[0];
$sth->finish();
return $retval;
}
sub update {
my $self = shift;
$self->do(@_);
return;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Jobrun.pm view on Meta::CPAN
my $hashRef = $sth->fetchall_hashref;
return $hashRef;
}
# only updates status and exit_code
sub updateStatus {
my ( $self, $name, $status, $exit_code, $startTime, $endTime, $elapsedTime ) = @_;
my $dbh = $self->{dbh};
my $sth = $dbh->prepare("UPDATE $controlTable SET status = ?, exit_code = ?, start_time = ? , end_time = ?, elapsed_time = ? WHERE name = ?");
$sth->execute( $status, $exit_code, $startTime, $endTime, $elapsedTime, $name );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Jorge/DBEntity.pm view on Meta::CPAN
else {
return 0;
}
}
sub update {
my $self = shift;
my @fields = @{ $self->_fields->[0] };
my %fields = %{ $self->_fields->[1] };
my $table_name = $self->_fields->[2];
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
or do {
print STDERR $new_actions_src;
die $@;
};
sub update_inc_lib_dirs {
my ( $self ) = @_;
my $action = $self->current_action();
# Update include_dirs and extra_linker_flags to find the Judy.h
view all matches for this distribution
view release on metacpan or search on metacpan
kgsueme/game.pl view on Meta::CPAN
$self->{rules_inlay}->refresh;
}
### BOARD DISPLAY ###########################################################
sub update_timers {
my ($self, $timers) = @_;
my $running = $self->{showmove} == @{$self->{path}} && !$self->{teacher};
for my $colour (COLOUR_BLACK, COLOUR_WHITE) {
kgsueme/game.pl view on Meta::CPAN
$self->update_timers ($self->{timers})
if $self->{showmove} == @{$self->{path}};
}
sub update_cursor {
my ($self) = @_;
return unless $self->{cur_board};
if ($self->{rules}{ruleset} == RULESET_JAPANESE) {
kgsueme/game.pl view on Meta::CPAN
$self->{board}->set (cursor => undef);
#TODO# # implement coordinate-grabbing
}
}
sub update_board {
my ($self) = @_;
return unless $self->{path};
$self->{board_label}->set_text ("Move " . ($self->{showmove} - 1));
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Karas.pm view on Meta::CPAN
} else {
return undef;
}
}
sub update {
my $self = shift;
if (UNIVERSAL::isa($_[0], 'Karas::Row')) {
my ($row, $set) = @_;
$set ||= +{};
$set = +{ %{$row->get_dirty_columns()}, %$set };
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kelp/Manual.pod view on Meta::CPAN
=head4 Explicit
$r->add( "/update/:id", "update" );
# Later
sub update {
my ( $self, $id ) = @_;
# Do something with $id
}
=head4 Optional
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kephra/App/SearchBar.pm view on Meta::CPAN
sub line_nr_around {
my ($self) = @_;
my $line_nr = $self->GetCurrentLine
}
sub update_flags {
my ($self) = @_;
$self->{'flags'} = (&Wx::wxSTC_FIND_MATCHCASE * $self->{'case'}->GetValue )
| (&Wx::wxSTC_FIND_WHOLEWORD * $self->{'word'}->GetValue )
| (&Wx::wxSTC_FIND_WORDSTART * $self->{'start'}->GetValue)
| (&Wx::wxSTC_FIND_REGEXP * $self->{'regex'}->GetValue);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Keystone/Resolver/DB/Object.pm view on Meta::CPAN
return ($linkclass, $linkto, $linkid, $linkfield);
}
# Returns the number of fields modified, dies on error
sub update {
my $this = shift();
my(%maybe_data) = @_;
my %data;
foreach my $key (keys %maybe_data) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Khonsu/Syntax.pm view on Meta::CPAN
}
return $file;
}
sub update_highlighting {
my ($self, %highlighting) = @_;
my $highlight = $self->highlight;
$highlight = {%{$highlight}, %highlighting};
$self->highlight($highlight);
return $self;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/KiokuDB.pm view on Meta::CPAN
$g->commit;
return $ret;
}
sub update {
my ( $self, @args ) = @_;
my $dir = $self->result_source->schema->kiokudb_handle;
my $lo = $dir->live_objects;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/KiokuDB.pm view on Meta::CPAN
}
sub insert { shift->_insert( 1, @_ ) }
sub insert_nonroot { shift->_insert( 0, @_ ) }
sub update {
my ( $self, @args ) = @_;
my @objects = $self->_register(@args);
my $l = $self->live_objects;
view all matches for this distribution