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.



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

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

Instance Method Details

#add_url_acl(url) ⇒ Object



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

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

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

Yields:

  • (@b)


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

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