Method: Jets::Builders::CodeBuilder#code_finish

Defined in:
lib/jets/builders/code_builder.rb

#code_finishObject



94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/jets/builders/code_builder.rb', line 94

def code_finish
  # Reconfigure code
  store_s3_base_url
  disable_webpacker_middleware
  copy_internal_jets_code

  # Code prep and zipping
  check_code_size!
  calculate_md5s # must be called before create_zip_files and generate_shims because checksums need to be populated
  # generate_shims and create_zip_files use checksums
  #
  # Notes:
  #
  # Had moved calculate_md5s to fix a what thought was a subtle issue https://github.com/tongueroo/jets/pull/424
  # But am unsure about that the fix now. This essentially reverts that issue.
  #
  # Fix in https://github.com/tongueroo/jets/pull/459
  #
  generate_shims # the generated handlers/data.yml has rack_zip key
  create_zip_files
end