Class: Getv::Package::Docker

Inherits:
Getv::Package show all
Defined in:
lib/getv/package/docker.rb

Overview

Getv::Package::Docker class

Instance Attribute Summary

Attributes inherited from Getv::Package

#name, #opts

Instance Method Summary collapse

Methods inherited from Getv::Package

create, #defaults, #latest_version, #update_versions, #versions

Constructor Details

#initialize(name, opts = {}) ⇒ Docker

Returns a new instance of Docker.



7
8
9
10
11
12
13
# File 'lib/getv/package/docker.rb', line 7

def initialize(name, opts = {})
  no_owner_domains = opts[:no_owner_domains] || []
  opts = defaults.merge(opts)
  opts = { user: nil, password: nil, auto_paginate: true, no_owner_domains: [] }.merge(opts)
  opts = docker_defaults(name, no_owner_domains).merge(opts)
  super name, opts
end