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.



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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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