Class: Guard::MyPlugin

Inherits:
Plugin
  • Object
show all
Defined in:
lib/guard/compat/example.rb

Instance Attribute Summary

Attributes inherited from Plugin

#options

Instance Method Summary collapse

Methods inherited from Plugin

#initialize

Constructor Details

This class inherits a constructor from Guard::Plugin

Instance Method Details

#run_allObject



16
17
18
19
20
21
22
23
24
# File 'lib/guard/compat/example.rb', line 16

def run_all
  Guard::Notifier.notify('foo', title: 'bar')

  Guard::UI.info('foo', bar: :baz)
  Guard::UI.warning('foo', bar: :baz)
  Guard::UI.error('foo', bar: :baz)
  Guard::UI.debug('foo', bar: :baz)
  Guard::UI.deprecation('foo', bar: :baz)
end

#startObject



6
7
8
9
10
11
12
13
14
# File 'lib/guard/compat/example.rb', line 6

def start
  Guard::Notifier.notify('foo')

  Guard::UI.info('foo')
  Guard::UI.warning('foo')
  Guard::UI.error('foo')
  Guard::UI.debug('foo')
  Guard::UI.deprecation('foo')
end