Class: FluentCommandBuilder::Netsh::V61::SetRule
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V61::SetRule
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) ⇒ SetRule
Returns a new instance of SetRule.
195
196
197
198
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 195
def initialize(underlying_builder)
super underlying_builder
@b.append ' set rule'
end
|
Instance Method Details
#dir(direction) {|@b| ... } ⇒ Object
204
205
206
207
208
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 204
def dir(direction)
@b.append " dir=#{@b.format direction}"
yield @b if block_given?
self
end
|
#group(group_name) {|@b| ... } ⇒ Object
199
200
201
202
203
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 199
def group(group_name)
@b.append " group=#{@b.format group_name}"
yield @b if block_given?
self
end
|
#local_ip(address) {|@b| ... } ⇒ Object
224
225
226
227
228
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 224
def local_ip(address)
@b.append " localIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#local_port(port) {|@b| ... } ⇒ Object
234
235
236
237
238
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 234
def local_port(port)
@b.append " localPort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#new ⇒ Object
249
250
251
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 249
def new
New.new @b
end
|
#profile(profile) {|@b| ... } ⇒ Object
209
210
211
212
213
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 209
def profile(profile)
@b.append " profile=#{@b.format profile}"
yield @b if block_given?
self
end
|
#program(path) {|@b| ... } ⇒ Object
214
215
216
217
218
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 214
def program(path)
@b.append " program=#{@b.format path}"
yield @b if block_given?
self
end
|
#protocol(protocol) {|@b| ... } ⇒ Object
244
245
246
247
248
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 244
def protocol(protocol)
@b.append " protocol=#{@b.format protocol}"
yield @b if block_given?
self
end
|
#remote_ip(address) {|@b| ... } ⇒ Object
229
230
231
232
233
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 229
def remote_ip(address)
@b.append " remoteIp=#{@b.format address, ','}"
yield @b if block_given?
self
end
|
#remote_port(port) {|@b| ... } ⇒ Object
239
240
241
242
243
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 239
def remote_port(port)
@b.append " remotePort=#{@b.format port, ','}"
yield @b if block_given?
self
end
|
#service(service_short_name) {|@b| ... } ⇒ Object
219
220
221
222
223
|
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 219
def service(service_short_name)
@b.append " service=#{@b.format service_short_name}"
yield @b if block_given?
self
end
|