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