Sha256: 9386e332e11bac5b61bca6a3cb119c4109a9ba9f9adb0e1bdb0e5c1ef8dd0dc1

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

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

module Bolt
  class Config
    module Transport
      class Jail < Base
        OPTIONS = %w[
          cleanup
          host
          interpreters
          shell-command
          tmpdir
          user
        ].concat(RUN_AS_OPTIONS).sort.freeze

        DEFAULTS = {
          'cleanup' => true
        }.freeze

        private def validate
          super

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bolt-4.0.0 lib/bolt/config/transport/jail.rb
bolt-3.29.0 lib/bolt/config/transport/jail.rb
bolt-3.28.0 lib/bolt/config/transport/jail.rb
bolt-3.27.4 lib/bolt/config/transport/jail.rb
bolt-3.27.2 lib/bolt/config/transport/jail.rb
bolt-3.27.1 lib/bolt/config/transport/jail.rb