Class: VagrantPlugins::Ansible_Fixed::Config::Guest

Inherits:
Base
  • Object
show all
Defined in:
lib/config/guest.rb

Constant Summary

Constants inherited from Base

Base::GALAXY_COMMAND_DEFAULT

Instance Attribute Summary collapse

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

Constructor Details

#initializeGuest

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

#installObject

Returns the value of attribute install.



10
11
12
# File 'lib/config/guest.rb', line 10

def install
  @install
end

#provisioning_pathObject

Returns the value of attribute provisioning_path.



8
9
10
# File 'lib/config/guest.rb', line 8

def provisioning_path
  @provisioning_path
end

#tmp_pathObject

Returns the value of attribute tmp_path.



9
10
11
# File 'lib/config/guest.rb', line 9

def tmp_path
  @tmp_path
end

#versionObject

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