class Guard::Interactor
def process_input(line)
-
line
(String
) -- the input line
def process_input(line) scopes, action = extract_scopes_and_action(line) case action when :help help when :stop ::Guard.stop exit when :pause ::Guard.pause when :reload reload(scopes) when :run_all ::Guard.run_all(scopes) when :notification toggle_notification else ::Guard::UI.error "Unknown command #{ line }" end end