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 4e9f7ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bolt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "addressable", '~> 2.5'
spec.add_dependency "aws-sdk-ec2", '~> 1'
spec.add_dependency "bootsnap", "~> 1.5"
spec.add_dependency "bootsnap", "~> 1.7"
spec.add_dependency "CFPropertyList", "~> 2.2"
spec.add_dependency "concurrent-ruby", "~> 1.0"
spec.add_dependency "ffi", "< 1.14.0"
Expand Down
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 4e9f7ca

Please sign in to comment.