lib/pe_build.rb in vagrant-pe_build-0.0.3 vs lib/pe_build.rb in vagrant-pe_build-0.1.0

- old
+ new

@@ -1,17 +1,25 @@ require 'vagrant' module PEBuild - def self.archive_directory - File.expand_path(File.join(ENV['HOME'], '.vagrant.d', 'pe_builds')) + + # Return the path to the archived PE builds + # + # @param env [Vagrant::Environment] + def self.archive_directory(env) + File.expand_path('pe_builds', env.home_path) end def self.source_root - @source_root ||= File.expand_path('..', File.dirname(__FILE__)) + File.expand_path('..', File.dirname(__FILE__)) end + + def self.template_dir + File.expand_path('templates', source_root) + end end +# I18n to load the en locale +I18n.load_path << File.expand_path("locales/en.yml", PEBuild.template_dir) + +require 'pe_build/plugin' require 'pe_build/version' -require 'pe_build/action' -require 'pe_build/config' -require 'pe_build/command' -require 'pe_build/provisioners'