Class: FluentCommandBuilder::Netsh::V2008::DeleteRule
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Netsh::V2008::DeleteRule
- Defined in:
- lib/fluent_command_builder/command_builders/netsh_2008.rb
Instance Method Summary collapse
- #dir(direction) {|@builder| ... } ⇒ Object
-
#initialize(builder, rule_name) ⇒ DeleteRule
constructor
A new instance of DeleteRule.
- #local_ip(address) {|@builder| ... } ⇒ Object
- #local_port(port) {|@builder| ... } ⇒ Object
- #profile(profile) {|@builder| ... } ⇒ Object
- #program(path) {|@builder| ... } ⇒ Object
- #protocol(protocol) {|@builder| ... } ⇒ Object
- #remote_ip(address) {|@builder| ... } ⇒ Object
- #remote_port(port) {|@builder| ... } ⇒ Object
- #service(service_short_name) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, rule_name) ⇒ DeleteRule
Returns a new instance of DeleteRule.
128 129 130 131 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 128 def initialize(builder, rule_name) super builder @builder.append " delete rule name=#{@builder.format rule_name}" end |
Instance Method Details
#dir(direction) {|@builder| ... } ⇒ Object
132 133 134 135 136 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 132 def dir(direction) @builder.append " dir=#{@builder.format direction}" yield @builder if block_given? self end |
#local_ip(address) {|@builder| ... } ⇒ Object
152 153 154 155 156 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 152 def local_ip(address) @builder.append " localIp=#{@builder.format address, ','}" yield @builder if block_given? self end |
#local_port(port) {|@builder| ... } ⇒ Object
162 163 164 165 166 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 162 def local_port(port) @builder.append " localPort=#{@builder.format port, ','}" yield @builder if block_given? self end |
#profile(profile) {|@builder| ... } ⇒ Object
137 138 139 140 141 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 137 def profile(profile) @builder.append " profile=#{@builder.format profile}" yield @builder if block_given? self end |
#program(path) {|@builder| ... } ⇒ Object
142 143 144 145 146 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 142 def program(path) @builder.append " program=#{@builder.format path}" yield @builder if block_given? self end |
#protocol(protocol) {|@builder| ... } ⇒ Object
172 173 174 175 176 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 172 def protocol(protocol) @builder.append " protocol=#{@builder.format protocol}" yield @builder if block_given? self end |
#remote_ip(address) {|@builder| ... } ⇒ Object
157 158 159 160 161 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 157 def remote_ip(address) @builder.append " remoteIp=#{@builder.format address, ','}" yield @builder if block_given? self end |
#remote_port(port) {|@builder| ... } ⇒ Object
167 168 169 170 171 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 167 def remote_port(port) @builder.append " remotePort=#{@builder.format port, ','}" yield @builder if block_given? self end |
#service(service_short_name) {|@builder| ... } ⇒ Object
147 148 149 150 151 |
# File 'lib/fluent_command_builder/command_builders/netsh_2008.rb', line 147 def service(service_short_name) @builder.append " service=#{@builder.format service_short_name}" yield @builder if block_given? self end |