Class: FluentCommandBuilder::DotCover::V12::Zip
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::DotCover::V12::Zip
- Defined in:
- lib/fluent_command_builder/command_builders/dotcover_12.rb
Instance Method Summary collapse
-
#initialize(builder, configuration_file = nil) ⇒ Zip
constructor
A new instance of Zip.
- #log_file(log_file) {|@builder| ... } ⇒ Object
- #output(snapshot_path) {|@builder| ... } ⇒ Object
- #source(source) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, configuration_file = nil) ⇒ Zip
Returns a new instance of Zip.
259 260 261 262 263 |
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 259 def initialize(builder, configuration_file=nil) super builder @builder.append ' zip' @builder.append " #{@builder.format configuration_file}" unless configuration_file.nil? end |
Instance Method Details
#log_file(log_file) {|@builder| ... } ⇒ Object
264 265 266 267 268 |
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 264 def log_file(log_file) @builder.append " /logFile=#{@builder.format log_file}" yield @builder if block_given? self end |
#output(snapshot_path) {|@builder| ... } ⇒ Object
269 270 271 272 273 |
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 269 def output(snapshot_path) @builder.append " /output=#{@builder.format snapshot_path}" yield @builder if block_given? self end |
#source(source) {|@builder| ... } ⇒ Object
274 275 276 277 278 |
# File 'lib/fluent_command_builder/command_builders/dotcover_12.rb', line 274 def source(source) @builder.append " /source=#{@builder.format source}" yield @builder if block_given? self end |