Class: FluentCommandBuilder::NuGet::V20::SetApiKey

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, api_key) ⇒ SetApiKey

Returns a new instance of SetApiKey.



321
322
323
324
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 321

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

Instance Method Details

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

Yields:

  • (@b)


330
331
332
333
334
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 330

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

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

Yields:

  • (@b)


325
326
327
328
329
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 325

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