Class: FluentCommandBuilder::Bundle::V12::Update

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, gem = nil) ⇒ Update

Returns a new instance of Update.



299
300
301
302
303
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 299

def initialize(underlying_builder, gem=nil)
  super underlying_builder
  @b.append ' update'
  @b.append " #{@b.format gem}" unless gem.nil?
end

Instance Method Details

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

Yields:

  • (@b)


304
305
306
307
308
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 304

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

#source(source) {|@b| ... } ⇒ Object

Yields:

  • (@b)


309
310
311
312
313
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 309

def source(source)
  @b.append " --source=#{@b.format source}"
  yield @b if block_given?
  self
end