Skip to content

Commit

Permalink
Item12952: And refactor into DependencyReport
Browse files Browse the repository at this point in the history
The reason for the step-by-step moves was so that the history would be
kept intact.   Moving, renaming and refactoring in one commit was too
much for git to handle.
  • Loading branch information
gac410 committed Sep 13, 2014
1 parent c3ba0f0 commit 6149e44
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 736 deletions.
21 changes: 21 additions & 0 deletions ConfigurePlugin/lib/Foswiki/Plugins/ConfigurePlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,30 @@ sub initPlugin {
}
}

Foswiki::Func::registerTagHandler( 'DEPENDENCYREPORT', \&_DEPENDENCYREPORT );

return 1;

}


sub _DEPENDENCYREPORT {
my ( $session, $params, $topic, $web ) = @_;

require Foswiki::Plugins::ConfigurePlugin::DependencyReport;

print STDERR "PARAM = ($params->{_DEFAULT}) \n" if defined $params->{_DEFAULT};

if ( defined $params->{_DEFAULT} && $params->{_DEFAULT} =~ m/'?extensions'?/ ) {
return Foswiki::Plugins::ConfigurePlugin::DependencyReport::analyzeExtensions()
}
else {
return Foswiki::Plugins::ConfigurePlugin::DependencyReport::analyzeFoswiki()
}

}


sub _JSONwrap {
my $method = shift;
return sub {
Expand Down
Loading

0 comments on commit 6149e44

Please sign in to comment.