lib/environment.rb in dev_tasks-1.0.28 vs lib/environment.rb in dev_tasks-1.0.29
- old
+ new
@@ -1,7 +1,8 @@
+#require 'dev_environment'
-class Environment < Hash
+class Environment #S< Hash#.class_eval do #< Hash do
def initialize
end
def self.scm
@@ -60,14 +61,14 @@
def self.dev_root
["DEV_HOME","DEV_ROOT"].each {|v|
return ENV[v].gsub('\\','/') unless ENV[v].nil?
}
- dir=self.home
+ dir=home
dir=ENV["DEV_ROOT"].gsub('\\','/') unless ENV["DEV_ROOT"].nil?
return dir
end
-
+#
def self.home
["USERPROFILE","HOME"].each {|v|
return ENV[v].gsub('\\','/') unless ENV[v].nil?
}
dir="~"
\ No newline at end of file