Class: FluentCommandBuilder::Netsh::V61::AddRule
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V61::AddRule
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, direction, action) ⇒ AddRule
Returns a new instance of AddRule.
63
64
65
66
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 63
def initialize(underlying_builder, rule_name, direction, action)
super underlying_builder
@b.append " add rule name=#{@b.format rule_name} dir=#{@b.format direction} action=#{@b.format action}"
end
|
Instance Method Details
#description(rule_description) {|@b| ... } ⇒ Object
77
78
79
80
81
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 77
def description(rule_description)
@b.append " description=#{@b.format rule_description}"
yield @b if block_given?
self
end
|
#edge(edge) {|@b| ... } ⇒ Object
132
133
134
135
136
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 132
def edge(edge)
@b.append " edge=#{@b.format edge}"
yield @b if block_given?
self
end
|
#enable(enable) {|@b| ... } ⇒ Object
82
83
84
85
86
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 82
def enable(enable)
@b.append " enable=#{@b.format enable}"
yield @b if block_given?
self
end
|
#interface_type(type) {|@b| ... } ⇒ Object
117
118
119
120
121
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 117
def interface_type(type)
@b.append " interfaceType=#{@b.format type}"
yield @b if block_given?
self
end
|
#local_ip(address) {|@b| ... } ⇒ Object
92
93
94
95
96
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 92
def local_ip(address)
@b.append " localIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#local_port(port) {|@b| ... } ⇒ Object
102
103
104
105
106
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 102
def local_port(port)
@b.append " localPort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#profile(profile) {|@b| ... } ⇒ Object
87
88
89
90
91
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 87
def profile(profile)
@b.append " profile=#{@b.format profile}"
yield @b if block_given?
self
end
|
#program(path) {|@b| ... } ⇒ Object
67
68
69
70
71
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 67
def program(path)
@b.append " program=#{@b.format path}"
yield @b if block_given?
self
end
|
#protocol(protocol) {|@b| ... } ⇒ Object
112
113
114
115
116
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 112
def protocol(protocol)
@b.append " protocol=#{@b.format protocol}"
yield @b if block_given?
self
end
|
#remote_computer_group(sddl_string) {|@b| ... } ⇒ Object
122
123
124
125
126
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 122
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
97
98
99
100
101
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 97
def remote_ip(address)
@b.append " remoteIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#remote_port(port) {|@b| ... } ⇒ Object
107
108
109
110
111
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 107
def remote_port(port)
@b.append " remotePort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#remote_user_group(sddl_string) {|@b| ... } ⇒ Object
127
128
129
130
131
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 127
def remote_user_group(sddl_string)
@b.append " rmtusgrp=#{@b.format sddl_string}"
yield @b if block_given?
self
end
|
#security(security) {|@b| ... } ⇒ Object
137
138
139
140
141
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 137
def security(security)
@b.append " security=#{@b.format security}"
yield @b if block_given?
self
end
|
#service(service_short_name) {|@b| ... } ⇒ Object
72
73
74
75
76
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 72
def service(service_short_name)
@b.append " service=#{@b.format service_short_name}"
yield @b if block_given?
self
end
|