Sha256: 62bcf480eb28079d5d89098b7423c68c57b040c85641b9d27874d47700624f70
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
module VagrantPlugins module DockerComposeProvisioner class Config < Vagrant.plugin("2", :config) DEFAULT_COMMAND_OPTIONS = { rm: "--force", up: "-d" } attr_accessor :yml, :rebuild, :project_name, :executable, :compose_version, :options, :command_options def yml=(yml) files = yml.is_a?(Array) ? yml : [yml] files.each do |file| raise DockerComposeError, :yml_must_be_absolute if !Pathname.new(file).absolute? end @yml = yml end def initialize @executable = UNSET_VALUE @project_name = UNSET_VALUE @compose_version = UNSET_VALUE @options = UNSET_VALUE @command_options = UNSET_VALUE end def finalize! @executable = "/usr/local/bin/docker-compose" if @executable == UNSET_VALUE @project_name = nil if @project_name == UNSET_VALUE @compose_version = "1.5.0" if @compose_version == UNSET_VALUE @options = nil if @options == UNSET_VALUE @command_options = {} if @command_options == UNSET_VALUE @command_options = DEFAULT_COMMAND_OPTIONS.merge(@command_options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-docker-compose-0.0.9 | lib/vagrant-docker-compose/config.rb |