Class: Construqt::Flavour::Ubuntu::EtcNetworkIptables
- Inherits:
-
Object
- Object
- Construqt::Flavour::Ubuntu::EtcNetworkIptables
- Defined in:
- lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb
Defined Under Namespace
Classes: Section
Instance Method Summary collapse
- #commitv4 ⇒ Object
- #commitv6 ⇒ Object
- #filter ⇒ Object
-
#initialize ⇒ EtcNetworkIptables
constructor
A new instance of EtcNetworkIptables.
- #mangle ⇒ Object
- #nat ⇒ Object
- #raw ⇒ Object
Constructor Details
#initialize ⇒ EtcNetworkIptables
Returns a new instance of EtcNetworkIptables.
73 74 75 76 77 78 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 73 def initialize @mangle = Section.new('mangle') @nat = Section.new('nat') @raw = Section.new('raw') @filter = Section.new('filter') end |
Instance Method Details
#commitv4 ⇒ Object
210 211 212 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 210 def commitv4 mangle.commitv4+raw.commitv4+nat.commitv4+filter.commitv4 end |
#commitv6 ⇒ Object
214 215 216 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 214 def commitv6 mangle.commitv6+raw.commitv6+nat.commitv6+filter.commitv6 end |
#filter ⇒ Object
206 207 208 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 206 def filter @filter end |
#mangle ⇒ Object
194 195 196 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 194 def mangle @mangle end |
#nat ⇒ Object
202 203 204 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 202 def nat @nat end |
#raw ⇒ Object
198 199 200 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 198 def raw @raw end |