Class: Guard::Jstd
- Inherits:
-
Guard
show all
- Defined in:
- lib/guard/jstd.rb,
lib/guard/jstd/runner.rb,
lib/guard/jstd/formatter.rb,
lib/guard/jstd/case_finder.rb,
lib/guard/jstd/configuration.rb
Defined Under Namespace
Modules: CaseFinder, Configuration, Runner
Classes: Formatter
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
30
31
32
|
# File 'lib/guard/jstd.rb', line 30
def self.configure
yield Configuration
end
|
Instance Method Details
#reload ⇒ Object
21
22
23
|
# File 'lib/guard/jstd.rb', line 21
def reload
Runner.run
end
|
#run_all ⇒ Object
16
17
18
19
|
# File 'lib/guard/jstd.rb', line 16
def run_all
Runner.run unless defined?(::Guard::CoffeeScript) &&
::Guard.guards.any? { |guard| guard.class == ::Guard::CoffeeScript }
end
|
#run_on_change(paths) ⇒ Object
25
26
27
28
|
# File 'lib/guard/jstd.rb', line 25
def run_on_change(paths)
cases = CaseFinder.find(paths)
Runner.run(cases)
end
|
#start ⇒ Object
11
12
13
14
|
# File 'lib/guard/jstd.rb', line 11
def start
UI.info "Guard::Jstd is running."
Runner.start_server
end
|