Class: FluentCommandBuilder::DotCover::V11::List

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) ⇒ List



171
172
173
174
175
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 171

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

Instance Method Details

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

Yields:

  • (@builder)


176
177
178
179
180
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 176

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)


181
182
183
184
185
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 181

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

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

Yields:

  • (@builder)


186
187
188
189
190
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 186

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