Sha256: 76603dc1180ce1169febd058a1fa293fd417210fa2bc270974e68fb00e13f9dd

Contents?: true

Size: 476 Bytes

Versions: 53

Compression:

Stored size: 476 Bytes

Contents

require "pry"

require "guard/notifier"

module Guard
  module Commands
    class Notification
      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
    end
  end
end

Version data entries

53 entries across 53 versions & 10 rubygems

Version Path
guard-2.13.0 lib/guard/commands/notification.rb
guard-2.12.9 lib/guard/commands/notification.rb
guard-2.12.8 lib/guard/commands/notification.rb
guard-2.12.7 lib/guard/commands/notification.rb
guard-2.12.6 lib/guard/commands/notification.rb
guard-2.12.5 lib/guard/commands/notification.rb
guard-2.12.4 lib/guard/commands/notification.rb
guard-2.12.3 lib/guard/commands/notification.rb
guard-2.12.2 lib/guard/commands/notification.rb
guard-2.12.1 lib/guard/commands/notification.rb
guard-2.12.0 lib/guard/commands/notification.rb
guard-2.11.1 lib/guard/commands/notification.rb
guard-2.11.0 lib/guard/commands/notification.rb