Sha256: 500e8905f3f1612620e5b89a93b93d1ffefae6fb5a8ba2ef2b89e13ed1c652f8
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
module VagrantPlugins module DockerProvider class Config < Vagrant.plugin("2", :config) attr_accessor :image, :cmd, :ports def initialize @image = UNSET_VALUE @cmd = UNSET_VALUE @ports = UNSET_VALUE end def finalize! @ports = [] if @ports == UNSET_VALUE @cmd = [] if @cmd == UNSET_VALUE end def validate(machine) errors = _detected_errors errors << I18n.t("docker_provider.errors.config.image_not_set") if @image == UNSET_VALUE # TODO: Detect if base image has a CMD / ENTRYPOINT set before erroring out errors << I18n.t("docker_provider.errors.config.cmd_not_set") if @cmd == UNSET_VALUE { "docker-provider" => errors } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docker-provider-0.0.2 | lib/docker-provider/config.rb |
docker-provider-0.0.1 | lib/docker-provider/config.rb |