Class | Guard::Guardfile |
In: |
lib/guard/guardfile.rb
|
Parent: | Object |
The Guardfile is responsible for generating the Guardfile and adding guards’ template into it.
@see Guard::CLI
Creates the initial Guardfile template when it does not already exist.
@see Guard::CLI.init
@param [Hash] options The options for creating a Guardfile @option options [Boolean] :abort_on_existence Whether to abort or not when a Guardfile already exists
Opens an existing guardfile and searches for redundant definitions if extraneous defintions are found, it warns the user
@see Guard::CLI.init
@param [String] class name of gem definition that you would like to search for in the Guardfile @param [String] contents of existing guardfile
Adds the templates of all installed Guard implementations to an existing Guardfile.
@see Guard::CLI.init
Adds the Guardfile template of a Guard implementation to an existing Guardfile.
@see Guard::CLI.init
@param [String] guard_name the name of the Guard or template to initialize