Class: FluentCommandBuilder::Netsh::V61::DeleteRule
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V61::DeleteRule
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) ⇒ DeleteRule
Returns a new instance of DeleteRule.
143
144
145
146
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 143
def initialize(underlying_builder, rule_name)
super underlying_builder
@b.append " delete rule name=#{@b.format rule_name}"
end
|
Instance Method Details
#dir(direction) {|@b| ... } ⇒ Object
147
148
149
150
151
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 147
def dir(direction)
@b.append " dir=#{@b.format direction}"
yield @b if block_given?
self
end
|
#local_ip(address) {|@b| ... } ⇒ Object
167
168
169
170
171
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 167
def local_ip(address)
@b.append " localIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#local_port(port) {|@b| ... } ⇒ Object
177
178
179
180
181
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 177
def local_port(port)
@b.append " localPort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#profile(profile) {|@b| ... } ⇒ Object
152
153
154
155
156
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 152
def profile(profile)
@b.append " profile=#{@b.format profile}"
yield @b if block_given?
self
end
|
#program(path) {|@b| ... } ⇒ Object
157
158
159
160
161
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 157
def program(path)
@b.append " program=#{@b.format path}"
yield @b if block_given?
self
end
|
#protocol(protocol) {|@b| ... } ⇒ Object
187
188
189
190
191
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 187
def protocol(protocol)
@b.append " protocol=#{@b.format protocol}"
yield @b if block_given?
self
end
|
#remote_ip(address) {|@b| ... } ⇒ Object
172
173
174
175
176
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 172
def remote_ip(address)
@b.append " remoteIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#remote_port(port) {|@b| ... } ⇒ Object
182
183
184
185
186
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 182
def remote_port(port)
@b.append " remotePort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#service(service_short_name) {|@b| ... } ⇒ Object
162
163
164
165
166
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 162
def service(service_short_name)
@b.append " service=#{@b.format service_short_name}"
yield @b if block_given?
self
end
|