Class: Nugrant::Vagrant::V2::Config::User
- Inherits:
-
Object
- Object
- Nugrant::Vagrant::V2::Config::User
- Includes:
- Mixin::Parameters
- Defined in:
- lib/nugrant/vagrant/v2/config/user.rb
Instance Attribute Summary
Attributes included from Mixin::Parameters
#__all, #__config, #__current, #__defaults, #__system, #__user
Instance Method Summary collapse
-
#initialize(defaults = {}, config = {}) ⇒ User
constructor
A new instance of User.
Methods included from Mixin::Parameters
#array_merge_strategy, #array_merge_strategy=, #auto_export, #auto_export=, #auto_export_script_path, #auto_export_script_path=, #compute_all!, #defaults, #defaults=, #merge, #merge!, #method_missing, #setup!
Constructor Details
#initialize(defaults = {}, config = {}) ⇒ User
Returns a new instance of User.
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/nugrant/vagrant/v2/config/user.rb', line 13 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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nugrant::Mixin::Parameters