8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/guard/commands/reload.rb', line 8
def self.import
Pry::Commands.create_command "reload" do
group "Guard"
description "Reload all plugins."
banner <<-BANNER
Usage: reload <scope>
Run the Guard plugin `reload` action.
You may want to specify an optional scope to the action,
either the name of a Guard plugin or a plugin group.
BANNER
def process(*entries)
scopes, unknown = Guard.state.session.convert_scope(entries)
unless unknown.empty?
output.puts "Unknown scopes: #{ unknown.join(', ') }"
return
end
Guard.async_queue_add([:guard_reload, scopes])
end
end
end
|