Class: FluentCommandBuilder::Bundle::V12::Platform

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ Platform

Returns a new instance of Platform.



277
278
279
280
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 277

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

Instance Method Details

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

Yields:

  • (@b)


281
282
283
284
285
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 281

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