Class: FluentCommandBuilder::DotCover::V11::Report
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::DotCover::V11::Report
- Defined in:
- lib/fluent_command_builder/command_builders/dotcover_11.rb
Instance Method Summary collapse
-
#initialize(builder, configuration_file = nil) ⇒ Report
constructor
A new instance of Report.
- #log_file(log_file) {|@builder| ... } ⇒ Object
- #output(snapshot_path) {|@builder| ... } ⇒ Object
- #report_type(report_type) {|@builder| ... } ⇒ Object
- #source(source) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, configuration_file = nil) ⇒ Report
220 221 222 223 224 |
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 220 def initialize(builder, configuration_file=nil) super builder @builder.append ' report' @builder.append " #{@builder.format configuration_file}" unless configuration_file.nil? end |
Instance Method Details
#log_file(log_file) {|@builder| ... } ⇒ Object
225 226 227 228 229 |
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 225 def log_file(log_file) @builder.append " /logFile=#{@builder.format log_file}" yield @builder if block_given? self end |
#output(snapshot_path) {|@builder| ... } ⇒ Object
230 231 232 233 234 |
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 230 def output(snapshot_path) @builder.append " /output=#{@builder.format snapshot_path}" yield @builder if block_given? self end |
#report_type(report_type) {|@builder| ... } ⇒ Object
235 236 237 238 239 |
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 235 def report_type(report_type) @builder.append " /reportType=#{@builder.format report_type}" yield @builder if block_given? self end |
#source(source) {|@builder| ... } ⇒ Object
240 241 242 243 244 |
# File 'lib/fluent_command_builder/command_builders/dotcover_11.rb', line 240 def source(source) @builder.append " /source=#{@builder.format source}" yield @builder if block_given? self end |