Sha256: 2ae8da887d5b8bc070fef1d108fc6e4fc549aa695138440a460e617c79331023

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

require "rancher/management_api/version"
require "faraday"

module Rancher
  module ManagementApi
    def self.connection(host = ENV["RANCHER_URL"])
      Faraday.new(url: host) do |faraday|
        faraday.headers["Content-Type"] = "application/json"
        faraday.headers["Accept"] = "application/json"
        faraday.adapter Faraday.default_adapter
        yield(faraday) if block_given?
      end
    end
  end
end

require "rancher/management_api/manager"
require "rancher/management_api/api_key"
require "rancher/management_api/project"
require "rancher/management_api/token"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rancher-management_api-0.1.0 lib/rancher/management_api.rb