lib/buildbox.rb in buildbox-0.4.2 vs lib/buildbox.rb in buildbox-0.5
- old
+ new
@@ -27,11 +27,17 @@
def self.logger=(logger)
@logger = logger
end
- def self.root_path
- path = Pathname.new File.join(ENV['HOME'], ".buildbox")
+ def self.gem_path
+ path = File.expand_path(File.join(__FILE__, "..", ".."))
+
+ Pathname.new(path)
+ end
+
+ def self.home_path
+ path = Pathname.new File.join(Dir.home, ".buildbox")
path.mkpath unless path.exist?
Pathname.new(path)
end
end