-
-
21 Oct 2021 11:53:53 UTC
- Distribution: Mojolicious
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (1961 / 52 / 38)
- Kwalitee
Bus factor: 6- 90.53% Coverage
- License: artistic_2
- Perl: v5.16.0
- Activity
24 month- Tools
- Download (821.64KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Mojo::Server::Morbo::Backend::Poll - Morbo default backend
SYNOPSIS
use Mojo::Server::Morbo::Backend::Poll; my $backend = Mojo::Server::Morbo::Backend::Poll->new; if (my $files = $backend->modified_files) { ... }
DESCRIPTION
Mojo::Server::Morbo::Backend::Poll is the default backend for Mojo::Server::Morbo.
ATTRIBUTES
Mojo::Server::Morbo::Backend::Poll inherits all attributes from Mojo::Server::Morbo::Backend.
METHODS
Mojo::Server::Morbo::Backend::Poll inherits all methods from Mojo::Server::Morbo::Backend and implements the following new ones.
modified_files
my $files = $backend->modified_files;
Check file size and mtime to determine which files have changed, this is not particularly efficient, but very portable.
# All files that have been modified say for @{$backend->modified_files};
SEE ALSO
Module Install Instructions
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm Mojolicious
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.