Permalink
Browse files

[proof-of-concept] announce 'Loading ecosystem'

This is nice-ish, because it takes a while to do so. In practice, a load
will only happen if a fetch is required. Since it loads a non-small JSON
file, it takes a couple seconds. During this time, it now says what it's
doing.
  • Loading branch information...
1 parent 5623bcb commit 4396d9b6c6eca4c9a0d1e9da7ac90903c4ea528c @masak committed Jul 4, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 proof-of-concept
View
2 proof-of-concept
@@ -43,7 +43,9 @@ class POC::Ecosystem does App::Pls::Ecosystem does FileBackend {
method project-info(Str $project --> Project) {
# This is *so* nice!
unless $!loaded-projects-file++ {
+ announce-start-of('load', 'ecosystem');
self.load-from-file;
+ announce-end-of('load', success);
}
die "No such project: $project"
unless %!projects.exists($project);

0 comments on commit 4396d9b

Please sign in to comment.