class Guard::DslDescriber

def list(options)

Parameters:
  • options (Hash) -- the Guard options

Other tags:
    Example: Guard list output -
def list(options)
  evaluate_guardfile(options)
  installed_guards = guardfile_structure.inject([]) do |installed, group|
    group[:guards].each { |guard| installed << guard[:name].to_s } if group[:guards]
    installed
  end
  UI.info 'Available guards:'
  ::Guard.guard_gem_names.sort.uniq.each do |name|
    UI.info "   #{ name }#{ installed_guards.include?(name) ? '*' : '' }"
  end
  UI.info ''
  UI.info 'See also https://github.com/guard/guard/wiki/List-of-available-Guards'
  UI.info '* denotes ones already in your Guardfile'
end