Class: FluentCommandBuilder::DotCover::V12::Version

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, output_file_name = nil) ⇒ Version

Returns a new instance of Version.



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

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

Instance Method Details

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

Yields:

  • (@builder)


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

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