push
travis-ci
67 of 67 new or added lines in 7 files covered. (100.0%)
6385 of 7395 relevant lines covered (86.34%)
9.1 hits per line
1 |
require "pry"
|
5✔ |
2 |
|
|
3 |
require "guard"
|
5✔ |
4 |
|
|
5 |
module Guard |
5✔ |
6 |
module Commands |
5✔ |
7 |
class Change |
5✔ |
8 |
def self.import |
5✔ |
9 |
Pry::Commands.create_command "change" do |
6 only jruby and 2.1.2 ✔ |
10 |
group "Guard"
|
6 only jruby and 2.1.2 ✔ |
11 |
description "Trigger a file change."
|
6 only jruby and 2.1.2 ✔ |
12 |
|
|
13 |
banner <<-BANNER |
6 only jruby and 2.1.2 ✔ |
14 |
Usage: change <file> <other_file> |
|
15 |
|
|
16 |
Pass the given files to the Guard plugin `run_on_changes` action.
|
|
17 |
BANNER |
× |
18 |
|
|
19 |
def process(*files) |
6 only jruby and 2.1.2 ✔ |
20 |
if files.empty?
|
6 only jruby and 2.1.2 ✔ |
21 |
output.puts "Please specify a file."
|
2 only jruby and 2.1.2 ✔ |
22 |
return
|
2 only jruby and 2.1.2 ✔ |
23 |
end
|
|
24 |
|
|
25 |
Guard.async_queue_add(modified: files, added: [], removed: []) |
4 only jruby and 2.1.2 ✔ |
26 |
end
|
|
27 |
end
|
|
28 |
end
|
|
29 |
end
|
|
30 |
end
|
|
31 |
end
|