Class: VagrantPlugins::CORL::Config::CORL

Inherits:
Object
  • Object
show all
Defined in:
lib/core/vagrant/provisioner/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCORL


Constructor / Destructor



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/core/vagrant/provisioner/config.rb', line 10

def initialize
  super
  @network           = UNSET_VALUE
  @node              = UNSET_VALUE

  @force_updates     = false
  @user_home         = UNSET_VALUE
  @user_home_env_var = UNSET_VALUE

  @root_user         = UNSET_VALUE
  @root_home         = UNSET_VALUE

  @bootstrap         = UNSET_VALUE
  @bootstrap_path    = UNSET_VALUE
  @bootstrap_glob    = UNSET_VALUE
  @bootstrap_init    = UNSET_VALUE
  @bootstrap_scripts = UNSET_VALUE
  @reboot            = true
  @dev_build         = false
  @ruby_version      = UNSET_VALUE

  @auth_files        = UNSET_VALUE

  @seed              = UNSET_VALUE
  @project_reference = UNSET_VALUE
  @project_branch    = UNSET_VALUE

  @environment       = UNSET_VALUE
  @build             = true
  @provision         = false
  @dry_run           = false
end

Instance Attribute Details

#auth_filesObject

Returns the value of attribute auth_files.



76
77
78
# File 'lib/core/vagrant/provisioner/config.rb', line 76

def auth_files
  @auth_files
end

#bootstrapObject

Returns the value of attribute bootstrap.



75
76
77
# File 'lib/core/vagrant/provisioner/config.rb', line 75

def bootstrap
  @bootstrap
end

#bootstrap_globObject

Returns the value of attribute bootstrap_glob.



75
76
77
# File 'lib/core/vagrant/provisioner/config.rb', line 75

def bootstrap_glob
  @bootstrap_glob
end

#bootstrap_initObject

Returns the value of attribute bootstrap_init.



75
76
77
# File 'lib/core/vagrant/provisioner/config.rb', line 75

def bootstrap_init
  @bootstrap_init
end

#bootstrap_pathObject

Returns the value of attribute bootstrap_path.



75
76
77
# File 'lib/core/vagrant/provisioner/config.rb', line 75

def bootstrap_path
  @bootstrap_path
end

#bootstrap_scriptsObject

Returns the value of attribute bootstrap_scripts.



75
76
77
# File 'lib/core/vagrant/provisioner/config.rb', line 75

def bootstrap_scripts
  @bootstrap_scripts
end

#buildObject

Returns the value of attribute build.



78
79
80
# File 'lib/core/vagrant/provisioner/config.rb', line 78

def build
  @build
end

#dev_buildObject

Returns the value of attribute dev_build.



76
77
78
# File 'lib/core/vagrant/provisioner/config.rb', line 76

def dev_build
  @dev_build
end

#dry_runObject

Returns the value of attribute dry_run.



78
79
80
# File 'lib/core/vagrant/provisioner/config.rb', line 78

def dry_run
  @dry_run
end

#environmentObject

Returns the value of attribute environment.



78
79
80
# File 'lib/core/vagrant/provisioner/config.rb', line 78

def environment
  @environment
end

#force_updatesObject

Returns the value of attribute force_updates.



73
74
75
# File 'lib/core/vagrant/provisioner/config.rb', line 73

def force_updates
  @force_updates
end

#networkObject


Property accessor / modifiers



72
73
74
# File 'lib/core/vagrant/provisioner/config.rb', line 72

def network
  @network
end

#nodeObject


Property accessor / modifiers



72
73
74
# File 'lib/core/vagrant/provisioner/config.rb', line 72

def node
  @node
end

#project_branchObject

Returns the value of attribute project_branch.



77
78
79
# File 'lib/core/vagrant/provisioner/config.rb', line 77

def project_branch
  @project_branch
end

#project_referenceObject

Returns the value of attribute project_reference.



77
78
79
# File 'lib/core/vagrant/provisioner/config.rb', line 77

def project_reference
  @project_reference
end

#provisionObject

Returns the value of attribute provision.



78
79
80
# File 'lib/core/vagrant/provisioner/config.rb', line 78

def provision
  @provision
end

#rebootObject

Returns the value of attribute reboot.



76
77
78
# File 'lib/core/vagrant/provisioner/config.rb', line 76

def reboot
  @reboot
end

#root_homeObject

Returns the value of attribute root_home.



73
74
75
# File 'lib/core/vagrant/provisioner/config.rb', line 73

def root_home
  @root_home
end

#root_userObject

Returns the value of attribute root_user.



73
74
75
# File 'lib/core/vagrant/provisioner/config.rb', line 73

def root_user
  @root_user
end

#ruby_versionObject

Returns the value of attribute ruby_version.



76
77
78
# File 'lib/core/vagrant/provisioner/config.rb', line 76

def ruby_version
  @ruby_version
end

#seedObject

Returns the value of attribute seed.



77
78
79
# File 'lib/core/vagrant/provisioner/config.rb', line 77

def seed
  @seed
end

#user_homeObject

Returns the value of attribute user_home.



73
74
75
# File 'lib/core/vagrant/provisioner/config.rb', line 73

def user_home
  @user_home
end

#user_home_env_varObject

Returns the value of attribute user_home_env_var.



73
74
75
# File 'lib/core/vagrant/provisioner/config.rb', line 73

def user_home_env_var
  @user_home_env_var
end

Instance Method Details

#finalize!Object




45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/core/vagrant/provisioner/config.rb', line 45

def finalize!
  super
  @user_home         = nil if @user_home == UNSET_VALUE
  @user_home_env_var = nil if @user_home_env_var == UNSET_VALUE

  @root_user         = nil if @root_user == UNSET_VALUE
  @root_home         = nil if @root_home == UNSET_VALUE

  @bootstrap         = nil if @bootstrap == UNSET_VALUE
  @bootstrap_path    = nil if @bootstrap_path == UNSET_VALUE
  @bootstrap_glob    = nil if @bootstrap_glob == UNSET_VALUE
  @bootstrap_init    = nil if @bootstrap_init == UNSET_VALUE
  @bootstrap_scripts = nil if @bootstrap_scripts == UNSET_VALUE
  @ruby_version      = nil if @ruby_version == UNSET_VALUE

  @auth_files        = nil if @auth_files == UNSET_VALUE

  @seed              = nil if @seed == UNSET_VALUE
  @project_reference = nil if @project_reference == UNSET_VALUE
  @project_branch    = nil if @project_branch == UNSET_VALUE

  @environment       = nil if @environment == UNSET_VALUE
end

#validate(machine) ⇒ Object


Validation



83
84
85
86
87
88
89
# File 'lib/core/vagrant/provisioner/config.rb', line 83

def validate(machine)
  errors = _detected_errors

  # TODO: Validation (with action config validators)

  { "CORL provisioner" => errors }
end