lib/l5m-tools/env.rb in l5m-tools-0.0.11 vs lib/l5m-tools/env.rb in l5m-tools-0.1.0
- old
+ new
@@ -1,7 +1,7 @@
module L5MTools
- raise "no WORKSPACE env " unless WORKSPACE = ENV["WORKSPACE"] || ENV["workspace"]
- raise "no CATALINA_HOME env" unless CATALINA_HOME = ENV["CATALINA_HOME"]
+ raise "no WORKSPACE env " unless WORKSPACE = (ENV["WORKSPACE"] || ENV["workspace"]).gsub(/[\\]/, '/')
+ raise "no CATALINA_HOME env" unless CATALINA_HOME = ENV["CATALINA_HOME"]
raise "no SVN_USER env" unless SVN_USER = ENV["SVN_USER"]
raise "no SENDER_EMAIL env" unless SENDER_EMAIL = ENV["SENDER_EMAIL"]
PACKAGES = ENV["PACKAGES"].split(/[,;:]/) if ENV["PACKAGES"]
DEV_HOST = ENV["DEV_HOST"]
end
\ No newline at end of file