Skip to content

Commit

Permalink
f update to bootsnap 1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Mar 5, 2021
1 parent dd571e8 commit 1653227
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions exe/bolt
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

bootsnap_enabled = ENV['BOLT_BOOTSNAP'] || false
if bootsnap_enabled
require 'bootsnap'
cache = File.join(ENV['USERPROFILE'], '.puppetlabs', 'etc', 'bolt')
Bootsnap.setup(
cache_dir: cache, # Path to your cache
development_mode: false, # Current working environment, e.g. RACK_ENV, RAILS_ENV, etc
load_path_cache: true, # Optimize the LOAD_PATH with a cache
autoload_paths_cache: false, # Optimize ActiveSupport autoloads with cache
disable_trace: false, # Set `RubyVM::InstructionSequence.compile_option = { trace_instruction: false }`
compile_cache_iseq: true, # Compile Ruby code into ISeq cache, breaks coverage reporting.
compile_cache_yaml: true # Compile YAML into a cache
)
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
ENV['BOOTSNAP_CACHE_DIR'] = File.join(ENV['USERPROFILE'], '.puppetlabs', 'etc', 'bolt')
require 'bootsnap/setup'
end

require 'bolt'
require 'bolt/cli'

Expand Down

0 comments on commit 1653227

Please sign in to comment.