Class: FluentCommandBuilder::NuGet::V20::Update

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, packages_config_or_solution) ⇒ Update

Returns a new instance of Update.



389
390
391
392
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 389

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

Instance Method Details

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

Yields:

  • (@b)


428
429
430
431
432
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 428

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

#id(package_id) {|@b| ... } ⇒ Object

Yields:

  • (@b)


398
399
400
401
402
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 398

def id(package_id)
  @b.append " -Id #{@b.format package_id}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


423
424
425
426
427
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 423

def prerelease
  @b.append ' -Prerelease'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


408
409
410
411
412
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 408

def safe
  @b.append ' -Safe'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


413
414
415
416
417
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 413

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

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

Yields:

  • (@b)


393
394
395
396
397
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 393

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

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

Yields:

  • (@b)


418
419
420
421
422
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 418

def verbose
  @b.append ' -Verbose'
  yield @b if block_given?
  self
end