Sha256: 1709310dde50c8a0a7a83b3e23bc391e41fb04a4df5a2ec4606fd860784c2c5a
Contents?: true
Size: 997 Bytes
Versions: 19
Compression:
Stored size: 997 Bytes
Contents
# NOTE: Do NOT require "guard/plugin" - it will either be already required, or # a stub will be supplied by the test class module Guard class MyPlugin < Plugin def start Guard::Compat::UI.notify('foo') Guard::Compat::UI.color('foo') Guard::Compat::UI.info('foo') Guard::Compat::UI.warning('foo') Guard::Compat::UI.error('foo') Guard::Compat::UI.debug('foo') Guard::Compat::UI.deprecation('foo') end def run_all Guard::Compat::UI.notify('foo', bar: :baz) Guard::Compat::UI.color('foo', :white) Guard::Compat::UI.info('foo', bar: :baz) Guard::Compat::UI.warning('foo', bar: :baz) Guard::Compat::UI.error('foo', bar: :baz) Guard::Compat::UI.debug('foo', bar: :baz) Guard::Compat::UI.deprecation('foo', bar: :baz) end def run_on_modifications Guard::Compat::UI.color_enabled? Guard::Compat.matching_files(self, ['foo']) Guard::Compat.watched_directories end end end
Version data entries
19 entries across 19 versions & 9 rubygems