Class: FluentCommandBuilder::NuGet::V20::Pack

Inherits:
CommandBase
  • Object
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, nuspec_or_project) ⇒ Pack

Returns a new instance of Pack.



203
204
205
206
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 203

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)


212
213
214
215
216
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 212

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

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

Yields:

  • (@b)


242
243
244
245
246
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 242

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

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

Yields:

  • (@b)


227
228
229
230
231
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 227

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

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

Yields:

  • (@b)


257
258
259
260
261
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 257

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

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

Yields:

  • (@b)


267
268
269
270
271
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 267

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

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

Yields:

  • (@b)


247
248
249
250
251
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 247

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

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

Yields:

  • (@b)


252
253
254
255
256
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 252

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

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

Yields:

  • (@b)


207
208
209
210
211
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 207

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)


262
263
264
265
266
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 262

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

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

Yields:

  • (@b)


232
233
234
235
236
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 232

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

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

Yields:

  • (@b)


237
238
239
240
241
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 237

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

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

Yields:

  • (@b)


217
218
219
220
221
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 217

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

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

Yields:

  • (@b)


222
223
224
225
226
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 222

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