class Guard::Preek

Public Instance Methods

run_all() click to toggle source
# File lib/guard/preek.rb, line 13
def run_all
  dir = options[:run_all_dir]
  raise_dir_missing unless dir
  UI.info %(Running Preek on '#{dir}'. Wait for it...!)
  Runner.new(dir, options[:report]).perform
end
run_on_changes(paths) click to toggle source
# File lib/guard/preek.rb, line 9
def run_on_changes(paths)
  Runner.new(paths, options[:report]).perform
end

Private Instance Methods

raise_dir_missing() click to toggle source
# File lib/guard/preek.rb, line 21
def raise_dir_missing
  UI.error "Please specify a dir for run all in your Guardfile!\nExample:\n\tguard :preek, run_all_dir: 'lib' do \n\t  watch(/lib\/(.*).rb/) \n\tend"
  throw :task_has_failed
end