Class: FluentCommandBuilder::NuGet::V20::Publish
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V20::Publish
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_id, package_version, api_key) ⇒ Publish
Returns a new instance of Publish.
273
274
275
276
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 273
def initialize(underlying_builder, package_id, package_version, api_key)
super underlying_builder
@b.append " publish #{@b.format package_id} #{@b.format package_version} #{@b.format api_key}"
end
|
Instance Method Details
#help {|@b| ... } ⇒ Object
282
283
284
285
286
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 282
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
277
278
279
280
281
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 277
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|