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.



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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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