Class: VagrantPlugins::CORL::Config::CORL
- Inherits:
-
Object
- Object
- VagrantPlugins::CORL::Config::CORL
- Defined in:
- lib/core/vagrant/provisioner/config.rb
Instance Attribute Summary collapse
-
#auth_files ⇒ Object
Returns the value of attribute auth_files.
-
#bootstrap ⇒ Object
Returns the value of attribute bootstrap.
-
#bootstrap_glob ⇒ Object
Returns the value of attribute bootstrap_glob.
-
#bootstrap_init ⇒ Object
Returns the value of attribute bootstrap_init.
-
#bootstrap_path ⇒ Object
Returns the value of attribute bootstrap_path.
-
#bootstrap_scripts ⇒ Object
Returns the value of attribute bootstrap_scripts.
-
#build ⇒ Object
Returns the value of attribute build.
-
#dev_build ⇒ Object
Returns the value of attribute dev_build.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#force_updates ⇒ Object
Returns the value of attribute force_updates.
-
#network ⇒ Object
—————————————————————————– Property accessor / modifiers.
-
#node ⇒ Object
—————————————————————————– Property accessor / modifiers.
-
#project_branch ⇒ Object
Returns the value of attribute project_branch.
-
#project_reference ⇒ Object
Returns the value of attribute project_reference.
-
#provision ⇒ Object
Returns the value of attribute provision.
-
#reboot ⇒ Object
Returns the value of attribute reboot.
-
#root_home ⇒ Object
Returns the value of attribute root_home.
-
#root_user ⇒ Object
Returns the value of attribute root_user.
-
#ruby_version ⇒ Object
Returns the value of attribute ruby_version.
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#user_home ⇒ Object
Returns the value of attribute user_home.
-
#user_home_env_var ⇒ Object
Returns the value of attribute user_home_env_var.
Instance Method Summary collapse
-
#finalize! ⇒ Object
—.
-
#initialize ⇒ CORL
constructor
—————————————————————————– Constructor / Destructor.
-
#validate(machine) ⇒ Object
—————————————————————————– Validation.
Constructor Details
#initialize ⇒ CORL
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_files ⇒ Object
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 |
#bootstrap ⇒ Object
Returns the value of attribute bootstrap.
75 76 77 |
# File 'lib/core/vagrant/provisioner/config.rb', line 75 def bootstrap @bootstrap end |
#bootstrap_glob ⇒ Object
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_init ⇒ Object
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_path ⇒ Object
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_scripts ⇒ Object
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 |
#build ⇒ Object
Returns the value of attribute build.
78 79 80 |
# File 'lib/core/vagrant/provisioner/config.rb', line 78 def build @build end |
#dev_build ⇒ Object
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_run ⇒ Object
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 |
#environment ⇒ Object
Returns the value of attribute environment.
78 79 80 |
# File 'lib/core/vagrant/provisioner/config.rb', line 78 def environment @environment end |
#force_updates ⇒ Object
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 |
#network ⇒ Object
Property accessor / modifiers
72 73 74 |
# File 'lib/core/vagrant/provisioner/config.rb', line 72 def network @network end |
#node ⇒ Object
Property accessor / modifiers
72 73 74 |
# File 'lib/core/vagrant/provisioner/config.rb', line 72 def node @node end |
#project_branch ⇒ Object
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_reference ⇒ Object
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 |
#provision ⇒ Object
Returns the value of attribute provision.
78 79 80 |
# File 'lib/core/vagrant/provisioner/config.rb', line 78 def provision @provision end |
#reboot ⇒ Object
Returns the value of attribute reboot.
76 77 78 |
# File 'lib/core/vagrant/provisioner/config.rb', line 76 def reboot @reboot end |
#root_home ⇒ Object
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_user ⇒ Object
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_version ⇒ Object
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 |
#seed ⇒ Object
Returns the value of attribute seed.
77 78 79 |
# File 'lib/core/vagrant/provisioner/config.rb', line 77 def seed @seed end |
#user_home ⇒ Object
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_var ⇒ Object
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 |