Class: FluentCommandBuilder::Bundle::V11::Viz

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ Viz

Returns a new instance of Viz.



292
293
294
295
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 292

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' viz'
end

Instance Method Details

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

Yields:

  • (@b)


296
297
298
299
300
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 296

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

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

Yields:

  • (@b)


301
302
303
304
305
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 301

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

#requirements {|@b| ... } ⇒ Object

Yields:

  • (@b)


306
307
308
309
310
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 306

def requirements
  @b.append ' --requirements'
  yield @b if block_given?
  self
end

#version {|@b| ... } ⇒ Object

Yields:

  • (@b)


311
312
313
314
315
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 311

def version
  @b.append ' --version'
  yield @b if block_given?
  self
end