Module: GuardHelpers::GemHelper
- Includes:
- BaseHelper
- Defined in:
- lib/guard_helpers/gem_helper.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Methods included from BaseHelper
#handle_all_paths, #handle_each_path, #paths, #start
Class Method Details
.included(base) ⇒ Object
33 34 35 |
# File 'lib/guard_helpers/gem_helper.rb', line 33 def included(base) base.extend(ClassMethods) end |
Instance Method Details
#run_on_modifications(paths) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/guard_helpers/gem_helper.rb', line 13 def run_on_modifications(paths) super if defined? super handle_each_path(%r{(^lib/(.+))|(^bin)\.rb}) do bash_build end handle_each_path(%r{^install\.rb$}) do |path| Kernel.system "bundle exec guard --guardfile install.rb --no-interactions" end end |