Class: FluentCommandBuilder::Bundle::V12::Show

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

Returns a new instance of Show.



287
288
289
290
291
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 287

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

Instance Method Details

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

Yields:

  • (@b)


292
293
294
295
296
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 292

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