class Docker::API

Attributes

connection[R]

Public Class Methods

new(options) click to toggle source
# File lib/docker/api.rb, line 10
def initialize(options)
  @debug      = options[:debug]
  @ssl        = options[:ssl] || { :verify => false }
  base_url    = options[:base_url]
  @connection = Docker::Connection.new(base_url: base_url)
  # @faraday_adapter = options[:faraday_adapter] || Faraday.default_adapter
  # @faraday         = options[:faraday]         || default_faraday
end

Public Instance Methods

containers() click to toggle source
# File lib/docker/api.rb, line 19
def containers
  Docker::Resource::Container.new(@connection)
end
images() click to toggle source
# File lib/docker/api.rb, line 23
def images
  Docker::Resource::Image.new(@connection)
end
system() click to toggle source
# File lib/docker/api.rb, line 27
def system
  
end