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