Sha256: 1449143eac472db02e8493d5e9461ea2ced052946c40f7624679b6781942958e
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
require "guard/preek/version" require 'guard' require 'guard/guard' module Guard class Preek < Guard autoload :Runner, 'guard/preek/runner' def run_on_changes(paths) Runner.new(paths, options[:report]).perform end 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 private 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
guard-preek-0.0.8 | lib/guard/preek.rb |
guard-preek-0.0.7 | lib/guard/preek.rb |
guard-preek-0.0.6 | lib/guard/preek.rb |
guard-preek-0.0.5 | lib/guard/preek.rb |