lib/guard/commands/notification.rb



require 'guard/notifier'

module Guard
  class Interactor

     NOTIFICATION = Pry::CommandSet.new do
      create_command 'notification' do

        group 'Guard'
        description 'Toggles the notifications.'

        banner <<-BANNER
          Usage: notification

          Toggles the notifications on and off.
        BANNER

        def process
          ::Guard::Notifier.toggle
        end
      end
    end

  end
end

Pry.commands.import ::Guard::Interactor::NOTIFICATION