Sha256: 3fbcc5ee8677c7e421d09905ad0b5202dfcf3d5f403af77a026590cfb837bfcd

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

module VagrantPlugins
  module DockerComposeProvisioner
    class Plugin < Vagrant.plugin("2")
      name "docker-compose-provisioner"
      description <<-DESC
      Provides support for provisioning your virtual machines with Docker-Compose.
      DESC

      I18n.load_path << File.expand_path("../locales/en.yml", __FILE__)
      I18n.reload!

      config(:docker_compose, :provisioner) do
        require_relative "config"
        Config
      end

      guest_capability("linux", "docker_compose_installed") do
        require_relative "cap/linux/docker_compose_installed"
        Cap::Linux::DockerComposeInstalled
      end

      guest_capability("linux", "docker_compose_get_info") do
        require_relative "cap/linux/docker_compose_get_info"
        Cap::Linux::DockerComposeGetInfo
      end

      guest_capability("linux", "docker_compose_upload") do
        require_relative "cap/linux/docker_compose_upload"
        Cap::Linux::DockerComposeUpload
      end

      guest_capability("linux", "docker_compose_install") do
        require_relative "cap/linux/docker_compose_install"
        Cap::Linux::DockerComposeInstall
      end

      guest_capability("linux", "docker_compose_symlink") do
        require_relative "cap/linux/docker_compose_symlink"
        Cap::Linux::DockerComposeSymlink
      end

      guest_capability("linux", "docker_compose_set_project_name") do
        require_relative "cap/linux/docker_compose_set_project_name"
        Cap::Linux::DockerComposeSetProjectName
      end

      provisioner(:docker_compose) do
        require_relative "provisioner"
        Provisioner
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-docker-compose-1.5.1 lib/vagrant-docker-compose/plugin.rb
vagrant-docker-compose-1.5.0 lib/vagrant-docker-compose/plugin.rb