Class: Guard::Sheller

Inherits:
Plugin
  • Object
show all
Defined in:
lib/guard/sheller.rb

Instance Method Summary collapse

Instance Method Details

#run_allObject



11
12
13
# File 'lib/guard/sheller.rb', line 11

def run_all
  run_on_changes Watcher.match_files(self, Dir.glob('{,**/}*{,.*}'))
end

#run_on_changes(paths) ⇒ Object



15
16
17
# File 'lib/guard/sheller.rb', line 15

def run_on_changes(paths)
  run paths.uniq
end

#startObject



6
7
8
9
# File 'lib/guard/sheller.rb', line 6

def start
  UI.info 'Guard::Sheller is running'
  run_all if options[:all_on_start]
end