Sha256: 9f04c1ef1027ae754a44db2f85d5217821209c53f1b4cb1403ddabf041f51f95

Contents?: true

Size: 485 Bytes

Versions: 16

Compression:

Stored size: 485 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
            ::Guard::Notifier.toggle
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
guard-2.10.5 lib/guard/commands/notification.rb
guard-2.10.4 lib/guard/commands/notification.rb
guard-2.10.3 lib/guard/commands/notification.rb
guard-2.10.2 lib/guard/commands/notification.rb
guard-2.10.1 lib/guard/commands/notification.rb
guard-2.10.0 lib/guard/commands/notification.rb
guard-2.9.2 lib/guard/commands/notification.rb
guard-2.9.1 lib/guard/commands/notification.rb
guard-2.9.0 lib/guard/commands/notification.rb
guard-2.8.2 lib/guard/commands/notification.rb
guard-2.8.1 lib/guard/commands/notification.rb
guard-2.8.0 lib/guard/commands/notification.rb
guard-2.7.3 lib/guard/commands/notification.rb
guard-2.7.2 lib/guard/commands/notification.rb
guard-2.7.1 lib/guard/commands/notification.rb
guard-2.7.0 lib/guard/commands/notification.rb