Class: Guard::Jessie

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/jessie.rb,
lib/guard/jessie/runner.rb

Defined Under Namespace

Modules: Runner

Instance Method Summary collapse

Instance Method Details

#run_allObject



8
9
10
11
# File 'lib/guard/jessie.rb', line 8

def run_all
  puts "Running all specs"
  Runner.run %w[spec]
end

#run_on_change(paths) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/guard/jessie.rb', line 13

def run_on_change paths
  paths = paths.select {|path| File.exists?(path) }
  if paths.any?
    puts "Running #{paths.join(' ')}"
    Runner.run paths
  end
end