class Guard::DslDescriber

def show(options)

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

Other tags:
    Example: guard show output -
def show(options)
  evaluate_guardfile(options)
  guardfile_structure.each do |group|
    unless group[:guards].empty?
      if group[:group]
        UI.info "Group #{ group[:group] }:"
      else
        UI.info '(global):'
      end
      group[:guards].each do |guard|
        line = "  #{ guard[:name] }"
        unless guard[:options].empty?
          line += ": #{ guard[:options].sort.collect { |k, v| "#{ k } => #{ v.inspect }" }.join(', ') }"
        end
        UI.info line
      end
    end
  end
  UI.info ''
end