Sha256: e011488032ebed0f98c3c29e91c899f722b259cd5561ba7abc6485445eabefb4

Contents?: true

Size: 988 Bytes

Versions: 11

Compression:

Stored size: 988 Bytes

Contents

module Vagrant
  module Provisioners
    # The base class for a "provisioner." A provisioner is responsible for
    # provisioning a Vagrant system. This has been abstracted out to provide
    # support for multiple solutions such as Chef Solo, Chef Client, and
    # Puppet.
    class Base
      include Vagrant::Util

      # The environment which this is being provisioned in
      attr_reader :env

      def initialize(env)
        @env = env
      end

      # This is the method called to "prepare" the provisioner. This is called
      # before any actions are run by the action runner (see {Vagrant::Actions::Runner}).
      # This can be used to setup shared folders, forward ports, etc. Whatever is
      # necessary on a "meta" level.
      def prepare; end

      # This is the method called to provision the system. This method
      # is expected to do whatever necessary to provision the system (create files,
      # SSH, etc.)
      def provision!; end
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
vagrantup-0.3.4 lib/vagrant/provisioners/base.rb
vagrantup-0.3.3 lib/vagrant/provisioners/base.rb
vagrantup-0.3.2 lib/vagrant/provisioners/base.rb
vagrantup-0.3.1 lib/vagrant/provisioners/base.rb
vagrantup-0.3.0 lib/vagrant/provisioners/base.rb
vagrant-0.3.4 lib/vagrant/provisioners/base.rb
vagrant-0.3.3 lib/vagrant/provisioners/base.rb
vagrant-0.3.2 lib/vagrant/provisioners/base.rb
vagrant-0.3.1 lib/vagrant/provisioners/base.rb
vagrant-0.3.0 lib/vagrant/provisioners/base.rb
bmabey-vagrant-0.2.0 lib/vagrant/provisioners/base.rb