Class: FluentCommandBuilder::DotCover::V11::Merge

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, configuration_file = nil) ⇒ Merge

Returns a new instance of Merge.



193
194
195
196
197
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 193

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

Instance Method Details

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

Yields:

  • (@builder)


198
199
200
201
202
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 198

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)


203
204
205
206
207
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 203

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

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

Yields:

  • (@builder)


208
209
210
211
212
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 208

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

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

Yields:

  • (@builder)


213
214
215
216
217
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 213

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