Class: Tebako::BundleBuilder
- Inherits:
-
Object
- Object
- Tebako::BundleBuilder
- Defined in:
- lib/tebako/bundle_builder.rb
Overview
Coordinates creation of a standalone Ruby/Tebako/application executable.
Instance Method Summary collapse
- #build(&block) ⇒ Object
-
#initialize(options_manager, scenario_manager) ⇒ BundleBuilder
constructor
A new instance of BundleBuilder.
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(, scenario_manager) @opts = @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 |