Sha256: 22cf1a1f22025e1ca0ecb23b4049f1423500263d483ccd08ac831967d65b4e48

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

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

module Rancher
  module ManagementApi
    def self.connection(host = nil)
      Faraday.new(url: host || ENV["RANCHER_URL"]) 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"
require "rancher/management_api/registration_token"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rancher-management_api-0.3.2 lib/rancher/management_api.rb
rancher-management_api-0.3.0 lib/rancher/management_api.rb