Class: Firewalld::FirewalldAPI
- Inherits:
-
Object
- Object
- Firewalld::FirewalldAPI
- Defined in:
- library/network/src/lib/network/firewalld.rb
Overview
The firewalld API. We only use the command line interface.
Class Method Summary collapse
Class Method Details
.create(type = :bash) ⇒ Object
79 80 81 82 83 84 85 86 87 88 |
# File 'library/network/src/lib/network/firewalld.rb', line 79 def self.create(type = :bash) case type when :bash FirewalldBashAPI.new when :dbus nil else raise "Unsupported Firewalld API type: #{type}" end end |