Class: Tebako::BundleBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/tebako/bundle_builder.rb

Overview

Coordinates creation of a standalone Ruby/Tebako/application executable.

Instance Method Summary collapse

Constructor Details

#initialize(options_manager, scenario_manager) ⇒ BundleBuilder

Returns a new instance of BundleBuilder.



13
14
15
16
# File 'lib/tebako/bundle_builder.rb', line 13

def initialize(options_manager, scenario_manager)
  @opts = options_manager
  @scm = scenario_manager
end

Instance Method Details

#build(&block) ⇒ Object



18
19
20
21
22
# File 'lib/tebako/bundle_builder.rb', line 18

def build(&block)
  return block.call unless @opts.deployment_cache?

  build_state.fetch(output, &block)
end