Class: FluentCommandBuilder::DotCover::V22::Report

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, configuration_file = nil) ⇒ Report

Returns a new instance of Report.



245
246
247
248
249
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 245

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

Instance Method Details

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

Yields:

  • (@b)


250
251
252
253
254
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 250

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

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

Yields:

  • (@b)


255
256
257
258
259
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 255

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

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

Yields:

  • (@b)


260
261
262
263
264
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 260

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

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

Yields:

  • (@b)


265
266
267
268
269
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 265

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