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.



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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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