Class: VagrantPlugins::Ansible_Fixed::Config::Guest
- Defined in:
- lib/config/guest.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#install ⇒ Object
Returns the value of attribute install.
-
#provisioning_path ⇒ Object
Returns the value of attribute provisioning_path.
-
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Base
#extra_vars, #galaxy_command, #galaxy_role_file, #galaxy_roles_path, #groups, #host_vars, #inventory_path, #limit, #playbook, #raw_arguments, #skip_tags, #start_at_task, #sudo, #sudo_user, #tags, #vault_password_file, #verbose
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Guest
constructor
A new instance of Guest.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Guest
Returns a new instance of Guest.
13 14 15 16 17 18 19 20 |
# File 'lib/config/guest.rb', line 13 def initialize super @install = UNSET_VALUE @provisioning_path = UNSET_VALUE @tmp_path = UNSET_VALUE @version = UNSET_VALUE end |
Instance Attribute Details
#install ⇒ Object
Returns the value of attribute install.
10 11 12 |
# File 'lib/config/guest.rb', line 10 def install @install end |
#provisioning_path ⇒ Object
Returns the value of attribute provisioning_path.
8 9 10 |
# File 'lib/config/guest.rb', line 8 def provisioning_path @provisioning_path end |
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
9 10 11 |
# File 'lib/config/guest.rb', line 9 def tmp_path @tmp_path end |
#version ⇒ Object
Returns the value of attribute version.
11 12 13 |
# File 'lib/config/guest.rb', line 11 def version @version end |
Instance Method Details
#finalize! ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/config/guest.rb', line 22 def finalize! super @install = true if @install == UNSET_VALUE @provisioning_path = "/vagrant" if provisioning_path == UNSET_VALUE @tmp_path = "/tmp/vagrant-ansible" if tmp_path == UNSET_VALUE @version = "" if @version == UNSET_VALUE end |
#validate(machine) ⇒ Object
31 32 33 34 35 |
# File 'lib/config/guest.rb', line 31 def validate(machine) super { "ansible local provisioner" => @errors } end |