Sha256: 55a622ff0d583cb6959f240323dcdf30e8b7cb0f60412b8687b7687a70645d37

Contents?: true

Size: 1.62 KB

Versions: 3

Compression:

Stored size: 1.62 KB

Contents

# encoding: UTF-8
# Copyright (c) 2018 António Meireles. All Rights Reserved.

require 'vagrant'

module VagrantPlugins
  module GuestClearLinux
    class Plugin < Vagrant.plugin('2')
      name 'Clear Linux guest'
      description 'Clear Linux guest support.'

      config(:bundle_add, :provisioner) do
        require_relative 'provisioner'
        BundlesConfig
      end
      config(:bundle_remove, :provisioner) do
        require_relative 'provisioner'
        BundlesConfig
      end

      provisioner(:bundle_add) do
        require_relative 'provisioner'
        BundleAddProvisioner
      end

      provisioner(:bundle_remove) do
        require_relative 'provisioner'
        BundleRemoveProvisioner
      end

      guest('clearlinux', 'linux') do
        require_relative 'guest'
        Guest
      end

      guest_capability('clearlinux', 'change_host_name') do
        require_relative 'cap/change_host_name'
        Cap::ChangeHostName
      end

      guest_capability('clearlinux', 'configure_networks') do
        require_relative 'cap/configure_networks'
        Cap::ConfigureNetworks
      end

      guest_capability('clearlinux', 'nfs_client_installed') do
        require_relative 'cap/nfs_client'
        Cap::NFS
      end

      guest_capability('clearlinux', 'nfs_client_install') do
        require_relative 'cap/nfs_client'
        Cap::NFS
      end

      guest_capability(:clearlinux, :rsync_install) do
        require_relative "cap/rsync"
        Cap::RSync
      end

      guest_capability(:clearlinux, :rsync_installed) do
        require_relative "cap/rsync"
        Cap::RSync
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-guests-clearlinux-1.1.2 lib/vagrant-guests-clearlinux/plugin.rb
vagrant-guests-clearlinux-1.1.1 lib/vagrant-guests-clearlinux/plugin.rb
vagrant-guests-clearlinux-1.1.0 lib/vagrant-guests-clearlinux/plugin.rb