class Awful::WAF::Rule

Public Instance Methods

ls() click to toggle source
# File lib/awful/waf_rule.rb, line 13
def ls
  list_thing(:rules).output do |rules|
    if options[:long]
      print_table rules.map { |r| [r.name, r.rule_id] }
    else
      puts rules.map(&:name)
    end
  end
end