Class: FluentCommandBuilder::NuGet::V21::Sources

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/nuget_21.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, action) ⇒ Sources



403
404
405
406
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 403

def initialize(underlying_builder, action)
  super underlying_builder
  @b.append " sources #{@b.format action}"
end

Instance Method Details

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


427
428
429
430
431
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 427

def help
  @b.append ' -Help'
  yield @b if block_given?
  self
end

#name(name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


407
408
409
410
411
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 407

def name(name)
  @b.append " -Name #{@b.format name}"
  yield @b if block_given?
  self
end

#non_interactive {|@b| ... } ⇒ Object

Yields:

  • (@b)


437
438
439
440
441
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 437

def non_interactive
  @b.append ' -NonInteractive'
  yield @b if block_given?
  self
end

#password(password) {|@b| ... } ⇒ Object

Yields:

  • (@b)


422
423
424
425
426
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 422

def password(password)
  @b.append " -Password #{@b.format_password password}"
  yield @b if block_given?
  self
end

#source(source) {|@b| ... } ⇒ Object

Yields:

  • (@b)


412
413
414
415
416
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 412

def source(source)
  @b.append " -Source #{@b.format source}"
  yield @b if block_given?
  self
end

#user_name(user_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


417
418
419
420
421
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 417

def user_name(user_name)
  @b.append " -UserName #{@b.format user_name}"
  yield @b if block_given?
  self
end

#verbosity(verbosity) {|@b| ... } ⇒ Object

Yields:

  • (@b)


432
433
434
435
436
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 432

def verbosity(verbosity)
  @b.append " -Verbosity #{@b.format verbosity}"
  yield @b if block_given?
  self
end