Class: FluentCommandBuilder::Bundle::V12::Outdated

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

Returns a new instance of Outdated.



238
239
240
241
242
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 238

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

Instance Method Details

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

Yields:

  • (@b)


243
244
245
246
247
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 243

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

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

Yields:

  • (@b)


248
249
250
251
252
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 248

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

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

Yields:

  • (@b)


253
254
255
256
257
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 253

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