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

#execute!, #to_s

Constructor Details

#initialize(builder, gem = nil) ⇒ Outdated

Returns a new instance of Outdated.



215
216
217
218
219
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 215

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

Instance Method Details

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

Yields:

  • (@builder)


220
221
222
223
224
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 220

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

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

Yields:

  • (@builder)


225
226
227
228
229
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 225

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

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

Yields:

  • (@builder)


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

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