Sha256: bc8036b01fa7bc238ac9efbc2d5ff42d18569503ac3c5f7edf776b59ffb0dc69

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

require "train-f5/connection"

module TrainPlugins
  module F5
    # F5 Transport class for Train
    class Transport < Train.plugin(1)
      name "f5"
      option :host,     default: ENV["F5_HOST"]
      option :insecure, default: false
      option :user,     default: ENV["F5_USER"]
      option :port,     default: ENV["F5_PORT"] || "443"
      option :password, default: ENV["F5_PASSWORD"]

      # Returns a cached connection to an F5 BigIP appliance
      def connection(_instance_opts = nil)
        @connection ||= TrainPlugins::F5::Connection.new(@options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
train-f5-0.1.1 lib/train-f5/transport.rb