Sha256: 09b9b72268bf73a11a52b28106dc1691b3998e11658f30d538fdc3cc87bf886a

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

require 'nugrant'
require 'nugrant/mixin/parameters'
require 'nugrant/vagrant/errors'

module Nugrant
  module Vagrant
    module V2
      module Config
        class User < ::Vagrant.plugin("2", :config)
          attr_reader :__current, :__user, :__system, :__defaults, :__all

          def initialize()
            setup!({},
              :params_filename => ".vagrantuser",
              :key_error => Proc.new do |key|
                raise Errors::ParameterNotFoundError, :key => key.to_s
              end,
              :parse_error => Proc.new do |filename, error|
                raise Errors::VagrantUserParseError, :filename => filename.to_s, :error => error
              end
            )
          end

          include Mixin::Parameters
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nugrant-2.0.0.pre2 lib/nugrant/vagrant/v2/config/user.rb