Sha256: 86e0b9a40696567f4eebde4eaa6b8875d222c9327bd11c535457a51370b111e6

Contents?: true

Size: 860 Bytes

Versions: 6

Compression:

Stored size: 860 Bytes

Contents

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

module Nugrant
  module Vagrant
    module V2
      module Config
        class User < ::Vagrant.plugin("2", :config)

          include Mixin::Parameters

          def initialize(defaults = {}, config = {})
            setup!(defaults,
              :params_filename => ".vagrantuser",
              :current_path => Helper.find_project_path(),
              :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
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nugrant-2.1.3 lib/nugrant/vagrant/v2/config/user.rb
nugrant-2.1.2 lib/nugrant/vagrant/v2/config/user.rb
nugrant-2.1.1 lib/nugrant/vagrant/v2/config/user.rb
nugrant-2.1.0 lib/nugrant/vagrant/v2/config/user.rb
nugrant-2.0.2 lib/nugrant/vagrant/v2/config/user.rb
nugrant-2.0.1 lib/nugrant/vagrant/v2/config/user.rb