travis-ci
556 of 556 new or added lines in 70 files covered. (100.0%)
6538 of 6795 relevant lines covered (96.22%)
12.65 hits per line
1 |
require "pry"
|
5✔ |
2 |
|
|
|
module Guard |
5✔ |
|
module Commands |
5✔ |
5 |
class Pause |
5✔ |
6 |
def self.import |
5✔ |
7 |
Pry::Commands.create_command "pause" do |
2 only 2.1.2 and rbx ✔ |
8 |
group "Guard"
|
2 only 2.1.2 and rbx ✔ |
9 |
description "Toggles the file listener."
|
2 only 2.1.2 and rbx ✔ |
10 |
|
|
11 |
banner <<-BANNER |
2 only 2.1.2 and rbx ✔ |
12 |
Usage: pause |
|
13 |
|
|
14 |
Toggles the file listener on and off. |
|
15 |
|
|
16 |
When the file listener is paused, the default Guard Pry |
|
17 |
prompt will show the pause sign `[p]`.
|
|
18 |
BANNER |
× |
19 |
|
|
20 |
def process |
2 only 2.1.2 and rbx ✔ |
21 |
::Guard.async_queue_add([:guard_pause]) |
× |
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|
|
26 |
end
|
|
27 |
end
|