class LambdaRubyBundler::CLI::StandardRunner

Runs the executor with given parameters.

Attributes

build_dependencies[R]
paths[R]

Public Class Methods

new(root_path, app_path, build_dependencies, paths) click to toggle source

Creates new instance of cache runner.

@param [String] root_path

Path to the root of application (containing Gemfile.lock)

@param [String] app_path

Path (relative to root_path) containing application code

@param [Boolean] build_dependencies

Whether or not to build dependencies

@param [Hash] paths

Hash with :application_bundle and :dependency_layer output paths
Calls superclass method LambdaRubyBundler::CLI::BaseRunner::new
# File lib/lambda_ruby_bundler/cli/standard_runner.rb, line 19
def initialize(root_path, app_path, build_dependencies, paths)
  super(root_path, app_path)
  @build_dependencies = build_dependencies
  @paths = paths
end

Public Instance Methods

run() click to toggle source

Runs the executo. Returns hash with two keys:

:application_bundle => path to the application code bundle
:dependency_layer => path to dependency bundle

@return [Hash] Paths to the builds

# File lib/lambda_ruby_bundler/cli/standard_runner.rb, line 30
def run
  bundle(build_dependencies)
end