Class: FluentCommandBuilder::Netsh::V61::New
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V61::New
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) ⇒ New
Returns a new instance of New.
253
254
255
256
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 253
def initialize(underlying_builder)
super underlying_builder
@b.append ' new'
end
|
Instance Method Details
#action(action) {|@b| ... } ⇒ Object
277
278
279
280
281
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 277
def action(action)
@b.append " action=#{@b.format action}"
yield @b if block_given?
self
end
|
#description(rule_description) {|@b| ... } ⇒ Object
282
283
284
285
286
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 282
def description(rule_description)
@b.append " description=#{@b.format rule_description}"
yield @b if block_given?
self
end
|
#dir(direction) {|@b| ... } ⇒ Object
262
263
264
265
266
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 262
def dir(direction)
@b.append " dir=#{@b.format direction}"
yield @b if block_given?
self
end
|
#edge(edge) {|@b| ... } ⇒ Object
337
338
339
340
341
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 337
def edge(edge)
@b.append " edge=#{@b.format edge}"
yield @b if block_given?
self
end
|
#enable(enable) {|@b| ... } ⇒ Object
287
288
289
290
291
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 287
def enable(enable)
@b.append " enable=#{@b.format enable}"
yield @b if block_given?
self
end
|
#interface_type(type) {|@b| ... } ⇒ Object
322
323
324
325
326
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 322
def interface_type(type)
@b.append " interfaceType=#{@b.format type}"
yield @b if block_given?
self
end
|
#local_ip(address) {|@b| ... } ⇒ Object
297
298
299
300
301
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 297
def local_ip(address)
@b.append " localIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#local_port(port) {|@b| ... } ⇒ Object
307
308
309
310
311
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 307
def local_port(port)
@b.append " localPort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#name(rule_name) {|@b| ... } ⇒ Object
257
258
259
260
261
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 257
def name(rule_name)
@b.append " name=#{@b.format rule_name}"
yield @b if block_given?
self
end
|
#profile(profile) {|@b| ... } ⇒ Object
292
293
294
295
296
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 292
def profile(profile)
@b.append " profile=#{@b.format profile}"
yield @b if block_given?
self
end
|
#program(path) {|@b| ... } ⇒ Object
267
268
269
270
271
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 267
def program(path)
@b.append " program=#{@b.format path}"
yield @b if block_given?
self
end
|
#protocol(protocol) {|@b| ... } ⇒ Object
317
318
319
320
321
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 317
def protocol(protocol)
@b.append " protocol=#{@b.format protocol}"
yield @b if block_given?
self
end
|
#remote_computer_group(sddl_string) {|@b| ... } ⇒ Object
327
328
329
330
331
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 327
def remote_computer_group(sddl_string)
@b.append " rmtcomputergrp=#{@b.format sddl_string}"
yield @b if block_given?
self
end
|
#remote_ip(address) {|@b| ... } ⇒ Object
302
303
304
305
306
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 302
def remote_ip(address)
@b.append " remoteIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#remote_port(port) {|@b| ... } ⇒ Object
312
313
314
315
316
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 312
def remote_port(port)
@b.append " remotePort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#remote_user_group(sddl_string) {|@b| ... } ⇒ Object
332
333
334
335
336
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 332
def remote_user_group(sddl_string)
@b.append " rmtusgrp=#{@b.format sddl_string}"
yield @b if block_given?
self
end
|
#security(security) {|@b| ... } ⇒ Object
342
343
344
345
346
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 342
def security(security)
@b.append " security=#{@b.format security}"
yield @b if block_given?
self
end
|
#service(service_short_name) {|@b| ... } ⇒ Object
272
273
274
275
276
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 272
def service(service_short_name)
@b.append " service=#{@b.format service_short_name}"
yield @b if block_given?
self
end
|