Class: FluentCommandBuilder::Netsh::V61::Http

Inherits:
CommandBase
  • Object
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) ⇒ Http

Returns a new instance of Http.



370
371
372
373
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 370

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' http'
end

Instance Method Details

#add_url_acl(url) ⇒ Object



374
375
376
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 374

def add_url_acl(url)
  AddUrlAcl.new @b, url
end

#delete_url_acl(url) {|@b| ... } ⇒ Object

Yields:

  • (@b)


377
378
379
380
381
# File 'lib/fluent_command_builder/command_builders/netsh_61.rb', line 377

def delete_url_acl(url)
  @b.append " delete urlacl url=#{@b.format url}"
  yield @b if block_given?
  self
end