Class: FluentCommandBuilder::Bundle::V11::Outdated
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Bundle::V11::Outdated
- Defined in:
- lib/fluent_command_builder/command_builders/bundle_11.rb
Instance Method Summary collapse
-
#initialize(builder, gem = nil) ⇒ Outdated
constructor
A new instance of Outdated.
- #local {|@builder| ... } ⇒ Object
- #pre {|@builder| ... } ⇒ Object
- #source {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
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
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
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
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 |