module Docker
Constants
- Image
Public Class Methods
images(path="/usr/bin/docker")
click to toggle source
# File lib/docker/maker.rb, line 139 def self.images path="/usr/bin/docker" `#{path} images | tail -n +2`.split(/\n/).inject([]) do |a, line| repo, tag, id, created = line.split(/\s\s+/) repo = nil if repo == '<none>' tag = nil if tag == '<none>' a << Image.new(repo, tag, id, created) end end
make(args) { |d| ... }
click to toggle source
# File lib/docker/maker.rb, line 130 def self.make(args) from = args[:from] to = args[:to] d = Maker.new(from, to) yield d end