Sha256: 2d03123cc3fced5457d8cdd8cc095d81929a2e1150c0bcc17fa778bb8383b7d9

Contents?: true

Size: 569 Bytes

Versions: 7

Compression:

Stored size: 569 Bytes

Contents

require "pry"

module Guard
  module Commands
    class Pause
      def self.import
        Pry::Commands.create_command "pause" do
          group "Guard"
          description "Toggles the file listener."

          banner <<-BANNER
          Usage: pause

          Toggles the file listener on and off.

          When the file listener is paused, the default Guard Pry
          prompt will show the pause sign `[p]`.
          BANNER

          def process
            ::Guard.async_queue_add([:guard_pause])
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
guard-2.8.2 lib/guard/commands/pause.rb
guard-2.8.1 lib/guard/commands/pause.rb
guard-2.8.0 lib/guard/commands/pause.rb
guard-2.7.3 lib/guard/commands/pause.rb
guard-2.7.2 lib/guard/commands/pause.rb
guard-2.7.1 lib/guard/commands/pause.rb
guard-2.7.0 lib/guard/commands/pause.rb