Class: Guard::Commands::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/commands/notification.rb

Class Method Summary collapse

Class Method Details

.importObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/guard/commands/notification.rb', line 8

def self.import
  Pry::Commands.create_command "notification" do
    group "Guard"
    description "Toggles the notifications."

    banner <<-BANNER
    Usage: notification

    Toggles the notifications on and off.
    BANNER

    def process
      Notifier.toggle
    end
  end
end