Sha256: eb827f30ba2640751f496c6926ccba953fa5d2f2ffe9c252f6f0347959bbaebf

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require 'droplet_kit'
require 'yaml'

module Docker
  SPECIAL_OPTS = ["image", "ports", "command", "post-conditions"]
  DEFAULT_USER = "root"

  def self.containers_for(host_name)
    config_file = "#{Ops::CONTAINERS_DIR}/#{host_name}.yml"
    begin
      config = YAML.load_file config_file
    rescue
      raise "Please, create '#{config_file}' file with all containers configured"
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
open-dock-0.1.1 lib/open-dock/docker.rb