def show(options)
evaluate_guardfile(options)
rows = ::Guard.groups.inject([]) do |rows, group|
plugins = ''
options = ''
values = ''
::Guard.guards({ :group => group.name }).each do |plugin|
plugins << plugin.to_s
plugin.options.inject({}) { |o, (k, v)| o[k.to_s] = v; o }.sort.each do |name, value|
options << name.to_s << "\n"
values << value.inspect << "\n"
end
end
rows << [group.to_s, plugins, options, values]
end
Terminal::Table.new(:title => 'Guardfile structure', :headings => %w(Group Plugin Option Value), :rows => rows)
end