Sha256: 0b831dd351b6ed39ade713ee07c8a81eeab0aba4b0b5d599f2b81f989da76fc8

Contents?: true

Size: 546 Bytes

Versions: 17

Compression:

Stored size: 546 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)
        validate_sudo_options(options)
      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

17 entries across 17 versions & 1 rubygems

Version Path
bolt-1.42.0 lib/bolt/transport/local.rb
bolt-1.41.0 lib/bolt/transport/local.rb
bolt-1.40.0 lib/bolt/transport/local.rb
bolt-1.39.0 lib/bolt/transport/local.rb
bolt-1.38.0 lib/bolt/transport/local.rb
bolt-1.37.0 lib/bolt/transport/local.rb
bolt-1.36.0 lib/bolt/transport/local.rb
bolt-1.35.0 lib/bolt/transport/local.rb
bolt-1.34.0 lib/bolt/transport/local.rb
bolt-1.33.0 lib/bolt/transport/local.rb
bolt-1.32.0 lib/bolt/transport/local.rb
bolt-1.31.1 lib/bolt/transport/local.rb
bolt-1.31.0 lib/bolt/transport/local.rb
bolt-1.30.1 lib/bolt/transport/local.rb
bolt-1.30.0 lib/bolt/transport/local.rb
bolt-1.29.1 lib/bolt/transport/local.rb
bolt-1.29.0 lib/bolt/transport/local.rb