Class: FluentCommandBuilder::DotCover::V12::Zip

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/dotcover_12.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, configuration_file = nil) ⇒ Zip

Returns a new instance of Zip.



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

def initialize(builder, configuration_file=nil)
  super builder
  @builder.append ' zip'
  @builder.append " #{@builder.format configuration_file}" unless configuration_file.nil?
end

Instance Method Details

#log_file(log_file) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


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

def log_file(log_file)
  @builder.append " /logFile=#{@builder.format log_file}"
  yield @builder if block_given?
  self
end

#output(snapshot_path) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


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

def output(snapshot_path)
  @builder.append " /output=#{@builder.format snapshot_path}"
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


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

def source(source)
  @builder.append " /source=#{@builder.format source}"
  yield @builder if block_given?
  self
end