Class: FluentCommandBuilder::DotCover::V11::Delete

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

Returns a new instance of Delete.



154
155
156
157
158
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 154

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

Instance Method Details

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

Yields:

  • (@builder)


159
160
161
162
163
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 159

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

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

Yields:

  • (@builder)


164
165
166
167
168
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 164

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