Class: FluentCommandBuilder::Bundle::V11::Show

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 = nil) ⇒ Show



248
249
250
251
252
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 248

def initialize(builder, gem=nil)
  super builder
  @builder.append ' show'
  @builder.append " #{@builder.format gem}" unless gem.nil?
end

Instance Method Details

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

Yields:

  • (@builder)


253
254
255
256
257
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 253

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