Class: FluentCommandBuilder::Bundle::V12::Package

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

Returns a new instance of Package.



260
261
262
263
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 260

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

Instance Method Details

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

Yields:

  • (@b)


269
270
271
272
273
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 269

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

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

Yields:

  • (@b)


264
265
266
267
268
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 264

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