Class: FluentCommandBuilder::Netsh::V61::ShowRule
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V61::ShowRule
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.
350
351
352
353
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 350
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
354
355
356
357
358
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 354
def profile(profile)
@b.append " profile=#{@b.format profile}"
yield @b if block_given?
self
end
|
#type(type) {|@b| ... } ⇒ Object
359
360
361
362
363
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 359
def type(type)
@b.append " type=#{@b.format type}"
yield @b if block_given?
self
end
|
#verbose {|@b| ... } ⇒ Object
364
365
366
367
368
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 364
def verbose
@b.append ' verbose'
yield @b if block_given?
self
end
|