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



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

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)


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

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

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

Yields:

  • (@b)


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

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