Sha256: 8582fae2165a0f785b75aff1162bacd2a38531e9eb808bd7ea1e3b853de75836

Contents?: true

Size: 662 Bytes

Versions: 9

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

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

module Bolt
  class Config
    module Transport
      class LXD < Base
        OPTIONS = %w[
          cleanup
          interpreters
          remote
          tmpdir
        ].concat(RUN_AS_OPTIONS).sort.freeze

        DEFAULTS = {
          'cleanup' => true,
          'remote'  => 'local'
        }.freeze

        private def validate
          super

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

Version data entries

9 entries across 9 versions & 1 rubygems

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