Sha256: ec7521dbebbe5f0f107be1782517aad75c3ae7d97583931c33cd18d3a50a53d3
Contents?: true
Size: 468 Bytes
Versions: 14
Compression:
Stored size: 468 Bytes
Contents
class Freighthop::VagrantEnv def self.env { 'VAGRANT_DOTFILE_PATH' => vagrant_dotfile_path, 'VAGRANT_CWD' => vagrant_cwd } end def self.activate! env.each do |key, val| ENV[key] = val.to_s end end def self.vagrant_cwd Freighthop.freighthop_root end def self.vagrant_dotfile_path Pathname('~/.freighthop.d/vagrant').expand_path.tap do |path| path.mkpath unless path.directory? end end end
Version data entries
14 entries across 14 versions & 1 rubygems