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✔ |
|
class Change |
5✔ |
6 |
def self.import |
5✔ |
7 |
Pry::Commands.create_command "change" do |
4 only 2.1.2 ✔ |
8 |
group "Guard"
|
4 only 2.1.2 ✔ |
9 |
description "Trigger a file change."
|
4 only 2.1.2 ✔ |
10 |
|
|
11 |
banner <<-BANNER |
4 only 2.1.2 ✔ |
12 |
Usage: change <file> <other_file> |
|
13 |
|
|
14 |
Pass the given files to the Guard plugin `run_on_changes` action.
|
|
15 |
BANNER |
× |
16 |
|
|
17 |
def process(*files) |
4 only 2.1.2 ✔ |
18 |
if files.empty?
|
3 only 2.1.2 ✔ |
19 |
output.puts "Please specify a file."
|
1 only 2.1.2 ✔ |
20 |
return
|
1 only 2.1.2 ✔ |
21 |
end
|
|
22 |
|
|
23 |
::Guard.async_queue_add(modified: files, added: [], removed: []) |
2 only 2.1.2 ✔ |
24 |
end
|
|
25 |
end
|
|
26 |
end
|
|
27 |
end
|
|
28 |
end
|
|
29 |
end
|