Class: FluentCommandBuilder::Bundle::V11::Cache

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) ⇒ Cache

Returns a new instance of Cache.



89
90
91
92
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 89

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' cache'
end

Instance Method Details

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

Yields:

  • (@b)


93
94
95
96
97
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 93

def no_prune
  @b.append ' --no-prune'
  yield @b if block_given?
  self
end