Module: FluentCommandBuilder::Netsh::V61

Defined in:
lib/fluent_command_builder/command_builders/netsh_61.rb

Defined Under Namespace

Classes: AddRule, AddUrlAcl, Advfirewall, DeleteRule, Firewall, Http, Netsh, New, SetRule, ShowRule

Constant Summary collapse

VERSION =
'6.1'
@@config =
CommandBuilderConfig.new FluentCommandBuilder::Netsh::COMMAND_NAME, VERSION

Instance Method Summary collapse

Instance Method Details

#configure_netsh {|@@config| ... } ⇒ Object

Yields:

  • (@@config)


12
13
14
15
16
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 12

def configure_netsh
  yield @@config
  @@config.validate_path
  @@config.validate_version
end

#netsh {|b| ... } ⇒ Object

Yields:

  • (b)


17
18
19
20
21
22
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 17

def netsh
  b = UnderlyingBuilder.new @@config
  c = Netsh.new(b)
  yield b if block_given?
  c
end