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