Class: Guard::Commands::All

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/commands/all.rb

Class Method Summary collapse

Class Method Details

.importObject



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
34
# File 'lib/guard/commands/all.rb', line 9

def self.import
  Pry::Commands.create_command "all" do
    group "Guard"
    description "Run all plugins."

    banner "    Usage: all <scope>\n\n    Run the Guard plugin `run_all` action.\n\n    You may want to specify an optional scope to the action,\n    either the name of a Guard plugin or a plugin group.\n    BANNER\n\n    def process(*entries)\n      scopes, unknown = Guard.state.session.convert_scope(entries)\n\n      unless unknown.empty?\n        output.puts \"Unknown scopes: \#{ unknown.join(', ') }\"\n        return\n      end\n\n      Guard.async_queue_add([:guard_run_all, scopes])\n    end\n  end\nend\n"