1
0
Fork 0
mirror of synced 2024-12-22 06:01:07 -05:00
dotbot/tests/dotbot_plugin_issue_357.py

18 lines
430 B
Python
Raw Normal View History

import os
from dotbot.plugin import Plugin
from dotbot.plugins import Clean, Create, Link, Shell
# https://github.com/anishathalye/dotbot/issues/357
# if we import from dotbot.plugins, the built-in plugins get executed multiple times
class NoopPlugin(Plugin):
_directive = "noop"
def can_handle(self, directive):
return directive == self._directive
def handle(self, directive, data):
return True