Sha256: bba659bba3f0a9450d514248a6aaefcd7a1781cba6f41276b68552695776c28b

Contents?: true

Size: 438 Bytes

Versions: 24

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

require 'bolt/logger'
require '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 'bolt/transport/local/connection'

Version data entries

24 entries across 24 versions & 1 rubygems

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