Sha256: 4824bb01a27eace1d46002ef5b446fb3699b4500a04063c964a12d5e6aca728d

Contents?: true

Size: 843 Bytes

Versions: 11

Compression:

Stored size: 843 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
          extensions
          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

11 entries across 11 versions & 1 rubygems

Version Path
bolt-4.0.0 lib/bolt/config/transport/local.rb
bolt-3.29.0 lib/bolt/config/transport/local.rb
bolt-3.28.0 lib/bolt/config/transport/local.rb
bolt-3.27.4 lib/bolt/config/transport/local.rb
bolt-3.27.2 lib/bolt/config/transport/local.rb
bolt-3.27.1 lib/bolt/config/transport/local.rb
bolt-3.26.2 lib/bolt/config/transport/local.rb
bolt-3.26.1 lib/bolt/config/transport/local.rb
bolt-3.25.0 lib/bolt/config/transport/local.rb
bolt-3.24.0 lib/bolt/config/transport/local.rb
bolt-3.23.1 lib/bolt/config/transport/local.rb