Sha256: 3b5c4ac91e2f21befe0b18a3495777ddbe94142b7e964393d1a8e200b662bb6a

Contents?: true

Size: 592 Bytes

Versions: 14

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

module Bolt
  module Transport
    class Local < Sudoable
      def self.options
        %w[tmpdir interpreters sudo-password run-as run-as-command]
      end

      def provided_features
        ['shell']
      end

      def self.validate(options)
        logger = Logging.logger[self]
        validate_sudo_options(options, logger)
      end

      def with_connection(target, *_args)
        conn = Shell.new(target)
        yield conn
      end

      def connected?(_targets)
        true
      end
    end
  end
end

require 'bolt/transport/local/shell'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bolt-1.28.0 lib/bolt/transport/local.rb
bolt-1.27.1 lib/bolt/transport/local.rb
bolt-1.27.0 lib/bolt/transport/local.rb
bolt-1.26.0 lib/bolt/transport/local.rb
bolt-1.25.0 lib/bolt/transport/local.rb
bolt-1.24.0 lib/bolt/transport/local.rb
bolt-1.23.0 lib/bolt/transport/local.rb
bolt-1.22.0 lib/bolt/transport/local.rb
bolt-1.21.0 lib/bolt/transport/local.rb
bolt-1.20.0 lib/bolt/transport/local.rb
bolt-1.19.0 lib/bolt/transport/local.rb
bolt-1.18.0 lib/bolt/transport/local.rb
bolt-1.17.0 lib/bolt/transport/local.rb
bolt-1.16.0 lib/bolt/transport/local.rb