Sha256: 25295673d33119598c9f28108ba504a4065befc6eb64351264380155e0c41e67

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 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"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rancher-management_api-0.2.0 lib/rancher/management_api.rb
rancher-management_api-0.1.1 lib/rancher/management_api.rb