Class: FluentCommandBuilder::Bundle::V11::Outdated

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

Returns a new instance of Outdated.



230
231
232
233
234
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 230

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)


235
236
237
238
239
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 235

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

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

Yields:

  • (@b)


240
241
242
243
244
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 240

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

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

Yields:

  • (@b)


245
246
247
248
249
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 245

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