Class: FluentCommandBuilder::DotCover::V12::Report

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) ⇒ Report



220
221
222
223
224
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 220

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

Instance Method Details

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

Yields:

  • (@builder)


225
226
227
228
229
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 225

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)


230
231
232
233
234
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 230

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

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

Yields:

  • (@builder)


235
236
237
238
239
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 235

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

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

Yields:

  • (@builder)


240
241
242
243
244
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 240

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