push
travis-ci
8 of 8 new or added lines in 2 files covered. (100.0%)
6835 of 7131 relevant lines covered (95.85%)
11.5 hits per line
1 |
require "pry"
|
5✔ |
2 |
|
|
3 |
require "guard/interactor"
|
5✔ |
4 |
require "guard"
|
5✔ |
5 |
|
|
6 |
module Guard |
5✔ |
7 |
module Commands |
5✔ |
8 |
class Reload |
5✔ |
9 |
def self.import |
5✔ |
10 |
Pry::Commands.create_command "reload" do |
8 only 1.9.3 ✔ |
11 |
group "Guard"
|
8 only 1.9.3 ✔ |
12 |
description "Reload all plugins."
|
8 only 1.9.3 ✔ |
13 |
|
|
14 |
banner <<-BANNER |
× |
15 |
Usage: reload <scope> |
|
16 |
|
|
17 |
Run the Guard plugin `reload` action. |
|
18 |
|
|
19 |
You may want to specify an optional scope to the action, |
|
20 |
either the name of a Guard plugin or a plugin group.
|
|
21 |
BANNER |
8 only 1.9.3 ✔ |
22 |
|
|
23 |
def process(*entries) |
8 only 1.9.3 ✔ |
24 |
scopes, unknown = Interactor.convert_scope(entries)
|
4 only 1.9.3 ✔ |
25 |
|
|
26 |
unless unknown.empty?
|
4 only 1.9.3 ✔ |
27 |
output.puts "Unknown scopes: #{ unknown.join(", ") }"
|
1 only 1.9.3 ✔ |
28 |
return
|
1 only 1.9.3 ✔ |
29 |
end
|
|
30 |
|
|
31 |
::Guard.async_queue_add([:guard_reload, scopes]) |
3 only 1.9.3 ✔ |
32 |
end
|
|
33 |
end
|
|
34 |
end
|
|
35 |
end
|
|
36 |
end
|
|
37 |
end
|