Class: FluentCommandBuilder::NuGet::V21::Pack

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, nuspec_or_project) ⇒ Pack

Returns a new instance of Pack.



260
261
262
263
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 260

def initialize(underlying_builder, nuspec_or_project)
  super underlying_builder
  @b.append " pack #{@b.format nuspec_or_project}"
end

Instance Method Details

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

Yields:

  • (@b)


269
270
271
272
273
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 269

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

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

Yields:

  • (@b)


299
300
301
302
303
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 299

def build
  @b.append ' -Build'
  yield @b if block_given?
  self
end

#exclude(pattern) {|@b| ... } ⇒ Object

Yields:

  • (@b)


284
285
286
287
288
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 284

def exclude(pattern)
  @b.append " -Exclude #{@b.format pattern}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


314
315
316
317
318
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 314

def exclude_empty_directories
  @b.append ' -ExcludeEmptyDirectories'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


324
325
326
327
328
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 324

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

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

Yields:

  • (@b)


304
305
306
307
308
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 304

def no_default_excludes
  @b.append ' -NoDefaultExcludes'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


309
310
311
312
313
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 309

def no_package_analysis
  @b.append ' -NoPackageAnalysis'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


334
335
336
337
338
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 334

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

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

Yields:

  • (@b)


264
265
266
267
268
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 264

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

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

Yields:

  • (@b)


319
320
321
322
323
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 319

def properties(properties)
  @b.append " -Properties #{@b.format properties, ';'}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


289
290
291
292
293
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 289

def symbols
  @b.append ' -Symbols'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


294
295
296
297
298
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 294

def tool
  @b.append ' -Tool'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


274
275
276
277
278
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 274

def verbose
  @b.append ' -Verbose'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


329
330
331
332
333
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 329

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

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

Yields:

  • (@b)


279
280
281
282
283
# File 'lib/fluent_command_builder/command_builders/nuget_21.rb', line 279

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