Class: FluentCommandBuilder::Bundle::V12::Cache

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



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

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

Instance Method Details

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

Yields:

  • (@b)


102
103
104
105
106
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 102

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

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

Yields:

  • (@b)


97
98
99
100
101
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 97

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