Module: FluentCommandBuilder::Bundle::V12

Defined in:
lib/fluent_command_builder/command_builders/bundle_12.rb

Defined Under Namespace

Classes: Bundle, Cache, Check, Clean, Gem, Init, Install, Outdated, Package, Platform, Show, Update, Viz

Constant Summary collapse

VERSION =
'1.2'
@@config =
CommandBuilderConfig.new FluentCommandBuilder::Bundle::COMMAND_NAME, VERSION

Instance Method Summary collapse

Instance Method Details

#bundle {|b| ... } ⇒ Object

Yields:

  • (b)


17
18
19
20
21
22
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 17

def bundle
  b = UnderlyingBuilder.new @@config
  c = Bundle.new(b)
  yield b if block_given?
  c
end

#configure_bundle {|@@config| ... } ⇒ Object

Yields:

  • (@@config)


12
13
14
15
16
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 12

def configure_bundle
  yield @@config
  @@config.validate_path
  @@config.validate_version
end