Class: FluentCommandBuilder::Bundle::V11::Gem

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

Returns a new instance of Gem.



127
128
129
130
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 127

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

Instance Method Details

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

Yields:

  • (@b)


131
132
133
134
135
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 131

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