Module: VagrantSpec::Utils

Included in:
AnsibleInventory, Command::Init, Command::Test
Defined in:
lib/vagrant_spec/utils.rb

Overview

Utilities

Instance Method Summary collapse

Instance Method Details

#lib_rootObject

return [String]



12
13
14
# File 'lib/vagrant_spec/utils.rb', line 12

def lib_root
  File.expand_path(File.join(File.dirname(__FILE__), '..'), __FILE__)
end

#project_rootObject

return [String]



7
8
9
# File 'lib/vagrant_spec/utils.rb', line 7

def project_root
  File.expand_path(File.join(File.dirname(__FILE__), '..', '..'), __FILE__)
end

#template_dirObject

return [String]



17
18
19
20
21
# File 'lib/vagrant_spec/utils.rb', line 17

def template_dir
  File.expand_path(
    File.join(lib_root, 'vagrant_spec', 'templates'), __FILE__
  )
end