Class: FluentCommandBuilder::NuGet::V21::Install
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::NuGet::V21::Install
show all
- Defined in:
- lib/fluent_command_builder/command_builders/nuget_21.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder, package_id_or_path_to_packages_config) ⇒ Install
Returns a new instance of Install.
157
158
159
160
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 157
def initialize(underlying_builder, package_id_or_path_to_packages_config)
super underlying_builder
@b.append " install #{@b.format package_id_or_path_to_packages_config}"
end
|
Instance Method Details
#exclude_version {|@b| ... } ⇒ Object
176
177
178
179
180
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 176
def exclude_version
@b.append ' -ExcludeVersion'
yield @b if block_given?
self
end
|
#help {|@b| ... } ⇒ Object
201
202
203
204
205
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 201
def help
@b.append ' -Help'
yield @b if block_given?
self
end
|
#no_cache {|@b| ... } ⇒ Object
186
187
188
189
190
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 186
def no_cache
@b.append ' -NoCache'
yield @b if block_given?
self
end
|
#non_interactive {|@b| ... } ⇒ Object
211
212
213
214
215
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 211
def non_interactive
@b.append ' -NonInteractive'
yield @b if block_given?
self
end
|
#output_directory(output_directory) {|@b| ... } ⇒ Object
166
167
168
169
170
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 166
def output_directory(output_directory)
@b.append " -OutputDirectory #{@b.format output_directory}"
yield @b if block_given?
self
end
|
#prerelease {|@b| ... } ⇒ Object
181
182
183
184
185
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 181
def prerelease
@b.append ' -Prerelease'
yield @b if block_given?
self
end
|
#require_consent {|@b| ... } ⇒ Object
191
192
193
194
195
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 191
def require_consent
@b.append ' -RequireConsent'
yield @b if block_given?
self
end
|
#solution_directory(solution_directory) {|@b| ... } ⇒ Object
196
197
198
199
200
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 196
def solution_directory(solution_directory)
@b.append " -SolutionDirectory #{@b.format solution_directory}"
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
161
162
163
164
165
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 161
def source(source)
@b.append " -Source #{@b.format source}"
yield @b if block_given?
self
end
|
#verbosity(verbosity) {|@b| ... } ⇒ Object
206
207
208
209
210
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 206
def verbosity(verbosity)
@b.append " -Verbosity #{@b.format verbosity}"
yield @b if block_given?
self
end
|
#version(version) {|@b| ... } ⇒ Object
171
172
173
174
175
|
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 171
def version(version)
@b.append " -Version #{@b.format version}"
yield @b if block_given?
self
end
|