Class: FluentCommandBuilder::Netsh::V2008::Advfirewall

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/netsh_2008.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder) ⇒ Advfirewall

Returns a new instance of Advfirewall.



20
21
22
23
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 20

def initialize(builder)
  super builder
  @builder.append ' advfirewall'
end

Instance Method Details

#firewallObject



24
25
26
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 24

def firewall
  Firewall.new @builder
end