Sha256: 534fd1740c9ce1d246db4c01ed9b517194d2e1418200eedd457954aa9c6f3bfe
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 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) raise DockerComposeError, :yml_must_be_absolute if !Pathname.new(yml).absolute? @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.8 | lib/vagrant-docker-compose/config.rb |