Sha256: 00dae4d1a62ddb50e378b52443be2d40cfdab38b433e52efa99e7603696c05b4

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

module VagrantPlugins
  module DockerComposeProvisioner
    class Config < Vagrant.plugin("2", :config)
      attr_accessor :yml, :rebuild, :project_name, :executable, :compose_version

      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
      end

      def finalize!
        @executable = "/usr/local/bin/docker-compose" if @executable == UNSET_VALUE
        @project_name = nil if @project_name == UNSET_VALUE
        @compose_version = "1.3.1" if @compose_version == UNSET_VALUE
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-docker-compose-0.0.4 lib/vagrant-docker-compose/config.rb