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 |
# required for async_queue_add
|
|
2 |
require "pry"
|
5✔ |
|
require "guard"
|
5✔ |
4 |
|
|
|
module Guard |
5✔ |
6 |
module Commands |
5✔ |
7 |
class All |
5✔ |
8 |
def self.import |
5✔ |
9 |
Pry::Commands.create_command "all" do |
10 only 2.1.2 and rbx ✔ |
10 |
group "Guard"
|
10 only 2.1.2 and rbx ✔ |
11 |
description "Run all plugins."
|
10 only 2.1.2 and rbx ✔ |
12 |
|
|
13 |
banner <<-BANNER |
10 only 2.1.2 and rbx ✔ |
14 |
Usage: all <scope> |
|
15 |
|
|
16 |
Run the Guard plugin `run_all` action. |
|
17 |
|
|
18 |
You may want to specify an optional scope to the action, |
|
19 |
either the name of a Guard plugin or a plugin group.
|
|
20 |
BANNER |
× |
21 |
|
|
22 |
def process(*entries) |
10 only 2.1.2 and rbx ✔ |
23 |
scopes, unknown = ::Guard::Interactor.convert_scope(entries) |
8 only 2.1.2 and rbx ✔ |
24 |
|
|
25 |
unless unknown.empty?
|
8 only 2.1.2 and rbx ✔ |
26 |
output.puts "Unknown scopes: #{ unknown.join(", ") }"
|
2 only 2.1.2 and rbx ✔ |
27 |
return
|
2 only 2.1.2 and rbx ✔ |
28 |
end
|
|
29 |
|
|
30 |
::Guard.async_queue_add([:guard_run_all, scopes]) |
6 only 2.1.2 and rbx ✔ |
31 |
end
|
|
32 |
end
|
|
33 |
end
|
|
34 |
end
|
|
35 |
end
|
|
36 |
end
|