1
# Copyright (C) 2008-2012 Canonical, Ltd.
3
# This program is free software: you can redistribute it and/or modify it
4
# under the terms of the GNU General Public License as published by the Free
5
# Software Foundation, version 3 of the License.
7
# This program is distributed in the hope that it will be useful, but WITHOUT
8
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
# You should have received a copy of the GNU General Public License along with
13
# this program. If not, see <http://www.gnu.org/licenses/>.
18
from __future__ import absolute_import, print_function, unicode_literals
27
from janitor.plugincore.cruft import Cruft
28
from janitor.plugincore.plugin import Plugin
31
class BravoCruft(Cruft):
32
def __init__(self, app):
35
def get_shortname(self):
39
# Tell the app we're cleaning up this cruft.
40
self.app.notifications.append((self, 'cruft'))
43
class BravoPlugin(Plugin):
45
yield BravoCruft(self.app)
47
def post_cleanup(self):
48
self.app.notifications.append((self, 'post'))