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

Returns a new instance of Sources.



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

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

Instance Method Details

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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