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

#execute!, #to_s

Constructor Details

#initialize(builder, gem) ⇒ Gem

Returns a new instance of Gem.



112
113
114
115
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 112

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

Instance Method Details

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

Yields:

  • (@builder)


116
117
118
119
120
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 116

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