Class: FluentCommandBuilder::Bundle::V11::Clean

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

Returns a new instance of Clean.



101
102
103
104
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 101

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

Instance Method Details

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

Yields:

  • (@builder)


105
106
107
108
109
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 105

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