Class: FluentCommandBuilder::Netsh::V61::ShowRule

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, rule_name) ⇒ ShowRule

Returns a new instance of ShowRule.



349
350
351
352
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 349

def initialize(underlying_builder, rule_name)
  super underlying_builder
  @b.append " show rule name=#{@b.format rule_name}"
end

Instance Method Details

#profile(profile) {|@b| ... } ⇒ Object

Yields:

  • (@b)


353
354
355
356
357
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 353

def profile(profile)
  @b.append " profile=#{@b.format profile}"
  yield @b if block_given?
  self
end

#type(type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


358
359
360
361
362
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 358

def type(type)
  @b.append " type=#{@b.format type}"
  yield @b if block_given?
  self
end

#verbose {|@b| ... } ⇒ Object

Yields:

  • (@b)


363
364
365
366
367
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 363

def verbose
  @b.append ' verbose'
  yield @b if block_given?
  self
end