Class: Construqt::Flavour::Ubuntu::EtcNetworkIptables

Inherits:
Object
  • Object
show all
Defined in:
lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb

Defined Under Namespace

Classes: Section

Instance Method Summary collapse

Constructor Details

#initializeEtcNetworkIptables

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

#commitv4Object



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

#commitv6Object



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

#filterObject



206
207
208
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 206

def filter
  @filter
end

#mangleObject



194
195
196
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 194

def mangle
  @mangle
end

#natObject



202
203
204
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 202

def nat
  @nat
end

#rawObject



198
199
200
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 198

def raw
  @raw
end