lib/guard.rb
def start(options = {})
      setup(options)

      Dsl.evaluate_guardfile(options)

      listener.on_change do |files|
        Dsl.reevaluate_guardfile        if Watcher.match_guardfile?(files)
        listener.changed_files += files if Watcher.match_files?(guards, files)
      end

      UI.info "Guard is now watching at '#{ listener.directory }'"
      guards.each { |guard| supervised_task(guard, :start) }

      interactor.start
      listener.start
    end
# Start Guard by evaluate the `Guardfile`, initialize the declared Guards
# and start the available file change listener.
#
# @param [Hash] options the Guard options.
# @option options [Boolean] clear if auto clear the UI should be done
# @option options [Boolean] notify if system notifications should be shown
# @option options [Boolean] debug if debug output should be shown
# @option options [Array<String>] group the list of groups to start
# @option options [String] watchdir the director to watch
# @option options [String] guardfile the path to the Guardfile
#
Start Guard by evaluate the `Guardfile`, initialize the declared Guards
and start the available file change listener.
Start Guard by evaluate the ` Guardfile ` initialize the declared Guards and start the available file change listener .
def start(options = {})
      setup(options)
      Dsl.evaluate_guardfile(options)
      listener.on_change do |files|
        Dsl.reevaluate_guardfile        if Watcher.match_guardfile?(files)
        listener.changed_files += files if Watcher.match_files?(guards, files)
      end
      UI.info "Guard is now watching at '#{ listener.directory }'"
      guards.each { |guard| supervised_task(guard, :start) }
      interactor.start
      listener.start
    end
def start ( options = { } ) setup ( options ) Dsl . evaluate_guardfile ( options ) listener . on_change do | files | Dsl . reevaluate_guardfile if Watcher . match_guardfile? ( files ) listener . changed_files += files if Watcher . match_files? ( guards , files ) end UI . info "Guard is now watching at '#{ listener.directory }'" guards . each { | guard | supervised_task ( guard , :start ) } interactor . start listener . start end
Start Guard by evaluate the `Guardfile`, initialize the declared Guards
and start the available file change listener.
Start Guard by evaluate the ` Guardfile ` initialize the declared Guards and start the available file change listener .
options
guardfile the path to the Guardfile
guardfile the path to the Guardfile
options the Guard options.
options the Guard options .