Sha256: 0eb788371b6785f5abae640227acb351ca9bd850868becec9e57d6d0f6917c0a

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

module VagrantPlugins::HostShell
  class Config < Vagrant.plugin('2', :config)
    attr_accessor :inline

    def initialize
      @inline = UNSET_VALUE
    end

    def finalize!
      @inline = nil if @inline == UNSET_VALUE
    end

    def validate(machine)
      errors = _detected_errors

      unless inline
        errors << ':host_shell provisioner requires inline to be set'
      end

      { 'host shell provisioner' => errors }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-host-shell-0.0.2 lib/vagrant-host-shell/config.rb
vagrant-host-shell-0.0.1 lib/vagrant-host-shell/config.rb