Sha256: e6db21753b6f5e13f8ccbec4bcfde7a82783c9951672f7e3467d591113d682d7

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

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

      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
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

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