Class: FluentCommandBuilder::NuGet::V21::SetApiKey
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V21::SetApiKey
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, api_key) ⇒ SetApiKey
Returns a new instance of SetApiKey.
377
378
379
380
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 377
def initialize(underlying_builder, api_key)
super underlying_builder
@b.append " setApiKey #{@b.format api_key}"
end
|
Instance Method Details
#help {|@b| ... } ⇒ Object
386
387
388
389
390
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 386
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#non_interactive {|@b| ... } ⇒ Object
396
397
398
399
400
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 396
def non_interactive
@b.append ' -NonInteractive'
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
381
382
383
384
385
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 381
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|
#verbosity(verbosity) {|@b| ... } ⇒ Object
391
392
393
394
395
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 391
def verbosity(verbosity)
@b.append " -Verbosity #{@b.format verbosity}"
yield @b if block_given?
self
end
|