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

#execute!, #to_s

Constructor Details

#initialize(builder) ⇒ Cache

Returns a new instance of Cache.



74
75
76
77
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 74

def initialize(builder)
  super builder
  @builder.append ' cache'
end

Instance Method Details

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

Yields:

  • (@builder)


78
79
80
81
82
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 78

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