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

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ Clean



117
118
119
120
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 117

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

Instance Method Details

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

Yields:

  • (@b)


121
122
123
124
125
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 121

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