Class: FluentCommandBuilder::NuGet::V20::Push
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V20::Push
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, package_path) ⇒ Push
Returns a new instance of Push.
289
290
291
292
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 289
def initialize(underlying_builder, package_path)
super underlying_builder
@b.append " push #{@b.format package_path}"
end
|
Instance Method Details
#api_key(api_key) {|@b| ... } ⇒ Object
303
304
305
306
307
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 303
def api_key(api_key)
@b.append " -ApiKey #{@b.format api_key}"
yield @b if block_given?
self
end
|
#create_only {|@b| ... } ⇒ Object
293
294
295
296
297
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 293
def create_only
@b.append ' -CreateOnly'
yield @b if block_given?
self
end
|
#help {|@b| ... } ⇒ Object
313
314
315
316
317
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 313
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
298
299
300
301
302
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 298
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|
#timeout(seconds) {|@b| ... } ⇒ Object
308
309
310
311
312
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 308
def timeout(seconds)
@b.append " -Timeout #{@b.format seconds}"
yield @b if block_given?
self
end
|