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.



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

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

Instance Method Details

#add_rule(rule_name, direction, action) ⇒ Object



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

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

#delete_rule(rule_name) ⇒ Object



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

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

#set_ruleObject



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

def set_rule
  SetRule.new @b
end

#show_rule(rule_name) ⇒ Object



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

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