Class: FluentCommandBuilder::NuGet::V20::Delete
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V20::Delete
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) ⇒ Delete
Returns a new instance of Delete.
81
82
83
84
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 81
def initialize(underlying_builder, package_id, package_version)
super underlying_builder
@b.append " delete #{@b.format package_id} #{@b.format package_version}"
end
|
Instance Method Details
#api_key(api_key) {|@b| ... } ⇒ Object
95
96
97
98
99
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 95
def api_key(api_key)
@b.append " -ApiKey #{@b.format api_key}"
yield @b if block_given?
self
end
|
#help {|@b| ... } ⇒ Object
100
101
102
103
104
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 100
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#no_prompt {|@b| ... } ⇒ Object
90
91
92
93
94
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 90
def no_prompt
@b.append ' -NoPrompt'
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
85
86
87
88
89
|
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 85
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|