Class: FluentCommandBuilder::DotCover::V22::Version

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

Returns a new instance of Version.



272
273
274
275
276
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 272

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

Instance Method Details

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

Yields:

  • (@b)


277
278
279
280
281
# File 'lib/fluent_command_builder/command_builders/dotcover_22.rb', line 277

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