Class: FluentCommandBuilder::DotCover::V21::List

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, configuration_file = nil) ⇒ List

Returns a new instance of List.



197
198
199
200
201
# File 'lib/fluent_command_builder/command_builders/dotcover_21.rb', line 197

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

Instance Method Details

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

Yields:

  • (@b)


202
203
204
205
206
# File 'lib/fluent_command_builder/command_builders/dotcover_21.rb', line 202

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)


207
208
209
210
211
# File 'lib/fluent_command_builder/command_builders/dotcover_21.rb', line 207

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

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

Yields:

  • (@b)


212
213
214
215
216
# File 'lib/fluent_command_builder/command_builders/dotcover_21.rb', line 212

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