Sha256: 1ce93de0ab7ef99ad216e7ddef5d4cde701eb18be1429920a8b82fb118a7daa3

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 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_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

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-docker-compose-1.4.0 lib/vagrant-docker-compose/plugin.rb
vagrant-docker-compose-1.2.0 lib/vagrant-docker-compose/plugin.rb
vagrant-docker-compose-1.1.0 lib/vagrant-docker-compose/plugin.rb
vagrant-docker-compose-1.0.0 lib/vagrant-docker-compose/plugin.rb