Class: FluentCommandBuilder::Netsh::V61::Firewall

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ Firewall

Returns a new instance of Firewall.



45
46
47
48
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 45

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' firewall'
end

Instance Method Details

#add_rule(rule_name, direction, action) ⇒ Object



49
50
51
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 49

def add_rule(rule_name, direction, action)
  AddRule.new @b, rule_name, direction, action
end

#delete_rule(rule_name) ⇒ Object



52
53
54
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 52

def delete_rule(rule_name)
  DeleteRule.new @b, rule_name
end

#set_ruleObject



55
56
57
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 55

def set_rule
  SetRule.new @b
end

#show_rule(rule_name) ⇒ Object



58
59
60
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 58

def show_rule(rule_name)
  ShowRule.new @b, rule_name
end