class Guard::Pow
Attributes
manager[RW]
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/guard/pow.rb, line 10 def initialize(options = {}) super @options = { restart_on_start: false, restart_on_reload: true }.merge(options) @manager = Manager.new end
Public Instance Methods
reload()
click to toggle source
# File lib/guard/pow.rb, line 23 def reload manager.restart if options[:restart_on_reload] end
run_on_changes(paths)
click to toggle source
# File lib/guard/pow.rb, line 27 def run_on_changes(paths) manager.restart end
start()
click to toggle source
# File lib/guard/pow.rb, line 19 def start manager.restart if options[:restart_on_start] end