Sha256: 8e7687cfa3b68f1480f947a473ef5d00f0072bb6812aee490806465853d6d292

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

require "vagrant"

I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml')
I18n.reload!

module VagrantPlugins
  module Vocker
    class Plugin < Vagrant.plugin("2")
      name "Vocker"
      description <<-DESC
      Introduces Docker to Vagrant
      DESC

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

      guest_capability("debian", "docker_install") do
        require_relative "cap/debian/docker_install"
        Cap::Debian::DockerInstall
      end

      guest_capability("debian", "docker_configure_auto_start") do
        require_relative "cap/debian/docker_configure_auto_start"
        Cap::Debian::DockerConfigureAutoStart
      end

      guest_capability("debian", "docker_configure_vagrant_user") do
        require_relative "cap/debian/docker_configure_vagrant_user"
        Cap::Debian::DockerConfigureVagrantUser
      end

      guest_capability("debian", "docker_start_service") do
        require_relative "cap/debian/docker_start_service"
        Cap::Debian::DockerStartService
      end

      guest_capability("linux", "docker_installed") do
        require_relative "cap/linux/docker_installed"
        Cap::Linux::DockerInstalled
      end

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

      command(:docker) do
        require_relative "command"
        Command
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vocker-0.4.1 lib/vocker/plugin.rb
vocker-0.4.0 lib/vocker/plugin.rb
vocker-0.3.3 lib/vocker/plugin.rb
vocker-0.3.2 lib/vocker/plugin.rb