Sha256: d51d8523c1e9b5661bd4476e8a688d26bcf220a3366c511b08399678020f8832

Contents?: true

Size: 786 Bytes

Versions: 24

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

require 'bolt/error'
require '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

24 entries across 24 versions & 1 rubygems

Version Path
bolt-3.17.0 lib/bolt/config/transport/local.rb
bolt-3.16.1 lib/bolt/config/transport/local.rb
bolt-3.16.0 lib/bolt/config/transport/local.rb
bolt-3.15.0 lib/bolt/config/transport/local.rb
bolt-3.14.1 lib/bolt/config/transport/local.rb
bolt-3.13.0 lib/bolt/config/transport/local.rb
bolt-3.12.0 lib/bolt/config/transport/local.rb
bolt-3.11.0 lib/bolt/config/transport/local.rb
bolt-3.10.0 lib/bolt/config/transport/local.rb
bolt-3.9.2 lib/bolt/config/transport/local.rb
bolt-3.9.1 lib/bolt/config/transport/local.rb
bolt-3.9.0 lib/bolt/config/transport/local.rb
bolt-3.8.1 lib/bolt/config/transport/local.rb
bolt-3.8.0 lib/bolt/config/transport/local.rb
bolt-3.7.1 lib/bolt/config/transport/local.rb
bolt-3.7.0 lib/bolt/config/transport/local.rb
bolt-3.6.1 lib/bolt/config/transport/local.rb
bolt-3.6.0 lib/bolt/config/transport/local.rb
bolt-3.5.0 lib/bolt/config/transport/local.rb
bolt-3.4.0 lib/bolt/config/transport/local.rb