Class: FluentCommandBuilder::NuGet::V21::Install

Inherits:
CommandBase
  • Object
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.



156
157
158
159
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 156

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

Yields:

  • (@b)


175
176
177
178
179
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 175

def exclude_version
  @b.append ' -ExcludeVersion'
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


200
201
202
203
204
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 200

def help
  @b.append ' -Help'
  yield @b if block_given?
  self
end

#no_cache {|@b| ... } ⇒ Object

Yields:

  • (@b)


185
186
187
188
189
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 185

def no_cache
  @b.append ' -NoCache'
  yield @b if block_given?
  self
end

#non_interactive {|@b| ... } ⇒ Object

Yields:

  • (@b)


210
211
212
213
214
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 210

def non_interactive
  @b.append ' -NonInteractive'
  yield @b if block_given?
  self
end

#output_directory(output_directory) {|@b| ... } ⇒ Object

Yields:

  • (@b)


165
166
167
168
169
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 165

def output_directory(output_directory)
  @b.append " -OutputDirectory #{@b.format output_directory}"
  yield @b if block_given?
  self
end

#prerelease {|@b| ... } ⇒ Object

Yields:

  • (@b)


180
181
182
183
184
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 180

def prerelease
  @b.append ' -Prerelease'
  yield @b if block_given?
  self
end

Yields:

  • (@b)


190
191
192
193
194
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 190

def require_consent
  @b.append ' -RequireConsent'
  yield @b if block_given?
  self
end

#solution_directory(solution_directory) {|@b| ... } ⇒ Object

Yields:

  • (@b)


195
196
197
198
199
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 195

def solution_directory(solution_directory)
  @b.append " -SolutionDirectory #{@b.format solution_directory}"
  yield @b if block_given?
  self
end

#source(source) {|@b| ... } ⇒ Object

Yields:

  • (@b)


160
161
162
163
164
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 160

def source(source)
  @b.append " -Source #{@b.format source}"
  yield @b if block_given?
  self
end

#verbosity(verbosity) {|@b| ... } ⇒ Object

Yields:

  • (@b)


205
206
207
208
209
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 205

def verbosity(verbosity)
  @b.append " -Verbosity #{@b.format verbosity}"
  yield @b if block_given?
  self
end

#version(version) {|@b| ... } ⇒ Object

Yields:

  • (@b)


170
171
172
173
174
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 170

def version(version)
  @b.append " -Version #{@b.format version}"
  yield @b if block_given?
  self
end