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