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