Class: Awful::WAF::Acl

Inherits:
Base show all
Defined in:
lib/awful/waf_acl.rb

Instance Method Summary collapse

Methods inherited from Base

#change

Methods inherited from Cli

#initialize

Constructor Details

This class inherits a constructor from Awful::Cli

Instance Method Details

#lsObject



14
15
16
17
18
19
20
21
22
# File 'lib/awful/waf_acl.rb', line 14

def ls
  list_thing(:web_acls).output do |list|
    if options[:long]
      print_table list.map { |a| [a.name, a.web_acl_id] }
    else
      puts list.map(&:name)
    end
  end
end