Sha256: 479ca15ed1e02a32c4a996924b476a2b81ea4b83253ecc4cd0cc7704e3d938a2

Contents?: true

Size: 642 Bytes

Versions: 21

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

require 'bolt/logger'
require 'bolt/node/errors'
require 'bolt/transport/simple'

module Bolt
  module Transport
    class LXD < Simple
      def provided_features
        ['shell']
      end

      def with_connection(target, options = {})
        Bolt::Logger.warn_once("lxd_experimental",
                               "The LXD transport is experimental, and might "\
                               "include breaking changes between minor versions.")
        conn = Connection.new(target, options)
        conn.connect
        yield conn
      end
    end
  end
end

require 'bolt/transport/lxd/connection'

Version data entries

21 entries across 21 versions & 1 rubygems

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