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