Class: FluentCommandBuilder::Bundle::V11::Update
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Bundle::V11::Update
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) ⇒ Update
Returns a new instance of Update.
275
276
277
278
279
|
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 275
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
280
281
282
283
284
|
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 280
def local
@b.append ' --local'
yield @b if block_given?
self
end
|
#source(source) {|@b| ... } ⇒ Object
285
286
287
288
289
|
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 285
def source(source)
@b.append " --source=#{@b.format source}"
yield @b if block_given?
self
end
|