Class: FluentCommandBuilder::NuGet::V20::Spec

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, package_id) ⇒ Spec

Returns a new instance of Spec.



368
369
370
371
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 368

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

Instance Method Details

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

Yields:

  • (@b)


372
373
374
375
376
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 372

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


382
383
384
385
386
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 382

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