Class: FluentCommandBuilder::Netsh::V2008::New
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V2008::New
- Defined in:
- lib/fluent_command_builder/command_builders/netsh_2008.rb
Instance Method Summary collapse
- #action(action) {|@builder| ... } ⇒ Object
- #description(rule_description) {|@builder| ... } ⇒ Object
- #dir(direction) {|@builder| ... } ⇒ Object
- #edge(edge) {|@builder| ... } ⇒ Object
- #enable(enable) {|@builder| ... } ⇒ Object
-
#initialize(builder) ⇒ New
constructor
A new instance of New.
- #interface_type(type) {|@builder| ... } ⇒ Object
- #local_ip(address) {|@builder| ... } ⇒ Object
- #local_port(port) {|@builder| ... } ⇒ Object
- #name(rule_name) {|@builder| ... } ⇒ Object
- #profile(profile) {|@builder| ... } ⇒ Object
- #program(path) {|@builder| ... } ⇒ Object
- #protocol(protocol) {|@builder| ... } ⇒ Object
- #remote_computer_group(sddl_string) {|@builder| ... } ⇒ Object
- #remote_ip(address) {|@builder| ... } ⇒ Object
- #remote_port(port) {|@builder| ... } ⇒ Object
- #remote_user_group(sddl_string) {|@builder| ... } ⇒ Object
- #security(security) {|@builder| ... } ⇒ Object
- #service(service_short_name) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder) ⇒ New
Returns a new instance of New.
238 239 240 241 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 238 def initialize(builder) super builder @builder.append ' new' end |
Instance Method Details
#action(action) {|@builder| ... } ⇒ Object
262 263 264 265 266 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 262 def action(action) @builder.append " action=#{@builder.format action}" yield @builder if block_given? self end |
#description(rule_description) {|@builder| ... } ⇒ Object
267 268 269 270 271 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 267 def description(rule_description) @builder.append " description=#{@builder.format rule_description}" yield @builder if block_given? self end |
#dir(direction) {|@builder| ... } ⇒ Object
247 248 249 250 251 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 247 def dir(direction) @builder.append " dir=#{@builder.format direction}" yield @builder if block_given? self end |
#edge(edge) {|@builder| ... } ⇒ Object
322 323 324 325 326 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 322 def edge(edge) @builder.append " edge=#{@builder.format edge}" yield @builder if block_given? self end |
#enable(enable) {|@builder| ... } ⇒ Object
272 273 274 275 276 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 272 def enable(enable) @builder.append " enable=#{@builder.format enable}" yield @builder if block_given? self end |
#interface_type(type) {|@builder| ... } ⇒ Object
307 308 309 310 311 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 307 def interface_type(type) @builder.append " interfaceType=#{@builder.format type}" yield @builder if block_given? self end |
#local_ip(address) {|@builder| ... } ⇒ Object
282 283 284 285 286 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 282 def local_ip(address) @builder.append " localIp=#{@builder.format address, ','}" yield @builder if block_given? self end |
#local_port(port) {|@builder| ... } ⇒ Object
292 293 294 295 296 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 292 def local_port(port) @builder.append " localPort=#{@builder.format port, ','}" yield @builder if block_given? self end |
#name(rule_name) {|@builder| ... } ⇒ Object
242 243 244 245 246 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 242 def name(rule_name) @builder.append " name=#{@builder.format rule_name}" yield @builder if block_given? self end |
#profile(profile) {|@builder| ... } ⇒ Object
277 278 279 280 281 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 277 def profile(profile) @builder.append " profile=#{@builder.format profile}" yield @builder if block_given? self end |
#program(path) {|@builder| ... } ⇒ Object
252 253 254 255 256 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 252 def program(path) @builder.append " program=#{@builder.format path}" yield @builder if block_given? self end |
#protocol(protocol) {|@builder| ... } ⇒ Object
302 303 304 305 306 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 302 def protocol(protocol) @builder.append " protocol=#{@builder.format protocol}" yield @builder if block_given? self end |
#remote_computer_group(sddl_string) {|@builder| ... } ⇒ Object
312 313 314 315 316 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 312 def remote_computer_group(sddl_string) @builder.append " rmtcomputergrp=#{@builder.format sddl_string}" yield @builder if block_given? self end |
#remote_ip(address) {|@builder| ... } ⇒ Object
287 288 289 290 291 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 287 def remote_ip(address) @builder.append " remoteIp=#{@builder.format address, ','}" yield @builder if block_given? self end |
#remote_port(port) {|@builder| ... } ⇒ Object
297 298 299 300 301 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 297 def remote_port(port) @builder.append " remotePort=#{@builder.format port, ','}" yield @builder if block_given? self end |
#remote_user_group(sddl_string) {|@builder| ... } ⇒ Object
317 318 319 320 321 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 317 def remote_user_group(sddl_string) @builder.append " rmtusgrp=#{@builder.format sddl_string}" yield @builder if block_given? self end |
#security(security) {|@builder| ... } ⇒ Object
327 328 329 330 331 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 327 def security(security) @builder.append " security=#{@builder.format security}" yield @builder if block_given? self end |
#service(service_short_name) {|@builder| ... } ⇒ Object
257 258 259 260 261 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 257 def service(service_short_name) @builder.append " service=#{@builder.format service_short_name}" yield @builder if block_given? self end |