Sha256: 4f39fc755a235bb2439f726b354c76e804dad331f78475fba405031880aa08fc

Contents?: true

Size: 822 Bytes

Versions: 7

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../bolt/error'
require_relative '../../../bolt/config/transport/base'

module Bolt
  class Config
    module Transport
      class Local < Base
        WINDOWS_OPTIONS = %w[
          bundled-ruby
          cleanup
          interpreters
          tmpdir
        ].freeze

        OPTIONS = WINDOWS_OPTIONS.dup.concat(RUN_AS_OPTIONS).sort.freeze

        DEFAULTS = {
          'bundled-ruby' => true,
          'cleanup' => true
        }.freeze

        def self.options
          Bolt::Util.windows? ? WINDOWS_OPTIONS : OPTIONS
        end

        private def validate
          super

          if @config['interpreters']
            @config['interpreters'] = normalize_interpreters(@config['interpreters'])
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bolt-3.23.0 lib/bolt/config/transport/local.rb
bolt-3.22.1 lib/bolt/config/transport/local.rb
bolt-3.22.0 lib/bolt/config/transport/local.rb
bolt-3.21.0 lib/bolt/config/transport/local.rb
bolt-3.20.0 lib/bolt/config/transport/local.rb
bolt-3.19.0 lib/bolt/config/transport/local.rb
bolt-3.18.0 lib/bolt/config/transport/local.rb