Module: VagrantSpec::Utils
- Included in:
- AnsibleInventory, Command::Init, Command::Test
- Defined in:
- lib/vagrant_spec/utils.rb
Overview
Utilities
Instance Method Summary collapse
-
#lib_root ⇒ Object
return [String].
-
#project_root ⇒ Object
return [String].
-
#template_dir ⇒ Object
return [String].
Instance Method Details
#lib_root ⇒ Object
return [String]
12 13 14 |
# File 'lib/vagrant_spec/utils.rb', line 12 def lib_root File.(File.join(File.dirname(__FILE__), '..'), __FILE__) end |
#project_root ⇒ Object
return [String]
7 8 9 |
# File 'lib/vagrant_spec/utils.rb', line 7 def project_root File.(File.join(File.dirname(__FILE__), '..', '..'), __FILE__) end |
#template_dir ⇒ Object
return [String]
17 18 19 20 21 |
# File 'lib/vagrant_spec/utils.rb', line 17 def template_dir File.( File.join(lib_root, 'vagrant_spec', 'templates'), __FILE__ ) end |