Class: FluentCommandBuilder::NuGet::V20::SetApiKey
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V20::SetApiKey
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.
320
321
322
323
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 320
def initialize(underlying_builder, api_key)
super underlying_builder
@b.append " setApiKey #{@b.format api_key}"
end
|
Instance Method Details
#help {|@b| ... } ⇒ Object
329
330
331
332
333
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 329
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
324
325
326
327
328
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 324
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|