Sha256: ffc9831afc365d71fccd83a0f7b04874ae4fb7201decce7fc9a16be3d050968b

Contents?: true

Size: 379 Bytes

Versions: 15

Compression:

Stored size: 379 Bytes

Contents

require 'droplet_kit'
require 'yaml'

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

  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

15 entries across 15 versions & 2 rubygems

Version Path
open-dock-0.1.0 lib/open-dock/docker.rb
open-dock-0.0.15 lib/open-dock/docker.rb
open-dock-0.0.14 lib/open-dock/docker.rb
open-dock-0.0.13 lib/open-dock/docker.rb
open-dock-0.0.12 lib/open-dock/docker.rb
open-dock-0.0.11 lib/open-dock/docker.rb
open-dock-0.0.10 lib/open-dock/docker.rb
prun-ops-0.0.9 lib/prun-ops/docker.rb
prun-ops-0.0.8 lib/prun-ops/docker.rb
prun-ops-0.0.7 lib/prun-ops/docker.rb
prun-ops-0.0.6 lib/prun-ops/docker.rb
prun-ops-0.0.5 lib/prun-ops/docker.rb
prun-ops-0.0.4 lib/prun-ops/docker.rb
prun-ops-0.0.3 lib/prun-ops/docker.rb
prun-ops-0.0.2 lib/prun-ops/docker.rb