Sha256: ddd7b3ee5bee336af2801054e77abc42ce1ab189feec5ea23741dc914cd3393d

Contents?: true

Size: 462 Bytes

Versions: 17

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

require_relative '../../bolt/logger'
require_relative '../../bolt/transport/simple'

module Bolt
  module Transport
    class Local < Simple
      def connected?(_target)
        true
      end

      def with_connection(target)
        if target.transport_config['bundled-ruby']
          target.set_local_defaults
        end

        yield Connection.new(target)
      end
    end
  end
end

require_relative 'local/connection'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bolt-3.29.0 lib/bolt/transport/local.rb
bolt-3.28.0 lib/bolt/transport/local.rb
bolt-3.27.4 lib/bolt/transport/local.rb
bolt-3.27.2 lib/bolt/transport/local.rb
bolt-3.27.1 lib/bolt/transport/local.rb
bolt-3.26.2 lib/bolt/transport/local.rb
bolt-3.26.1 lib/bolt/transport/local.rb
bolt-3.25.0 lib/bolt/transport/local.rb
bolt-3.24.0 lib/bolt/transport/local.rb
bolt-3.23.1 lib/bolt/transport/local.rb
bolt-3.23.0 lib/bolt/transport/local.rb
bolt-3.22.1 lib/bolt/transport/local.rb
bolt-3.22.0 lib/bolt/transport/local.rb
bolt-3.21.0 lib/bolt/transport/local.rb
bolt-3.20.0 lib/bolt/transport/local.rb
bolt-3.19.0 lib/bolt/transport/local.rb
bolt-3.18.0 lib/bolt/transport/local.rb