Class: FluentCommandBuilder::Bundle::V12::Gem

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, gem) ⇒ Gem

Returns a new instance of Gem.



135
136
137
138
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 135

def initialize(underlying_builder, gem)
  super underlying_builder
  @b.append " gem #{@b.format gem}"
end

Instance Method Details

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

Yields:

  • (@b)


139
140
141
142
143
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 139

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