Class: FluentCommandBuilder::NuGet::V20::Sources
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V20::Sources
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, action) ⇒ Sources
Returns a new instance of Sources.
337
338
339
340
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 337
def initialize(underlying_builder, action)
super underlying_builder
@b.append " sources #{@b.format action}"
end
|
Instance Method Details
#help {|@b| ... } ⇒ Object
361
362
363
364
365
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 361
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#name(name) {|@b| ... } ⇒ Object
341
342
343
344
345
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 341
def name(name)
@b.append " -Name #{@b.format name}"
yield @b if block_given?
self
end
|
#password(password) {|@b| ... } ⇒ Object
356
357
358
359
360
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 356
def password(password)
@b.append " -Password #{@b.format_password password}"
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
346
347
348
349
350
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 346
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|
#user_name(user_name) {|@b| ... } ⇒ Object
351
352
353
354
355
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 351
def user_name(user_name)
@b.append " -UserName #{@b.format user_name}"
yield @b if block_given?
self
end
|