Class: Awful::WAF::Rule
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Cli
Constructor Details
This class inherits a constructor from Awful::Cli
Instance Method Details
#ls ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/awful/waf_rule.rb', line 13 def ls list_thing(:rules).output do |rules| if [:long] print_table rules.map { |r| [r.name, r.rule_id] } else puts rules.map(&:name) end end end |