windows support

This commit is contained in:
David Dollar committed 2012-01-22 20:33:14 -05:00
1 parent 4ad49cb058
commit f60c4cb767
7 files changed
+37 -12

No files matched your search

+8 -1
View File
@@ -14,5 +14,12 @@ module Foreman
File.expand_path("../../bin/runner", __FILE__)
end
end
def self.jruby?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java"
end
def self.windows?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/
end
end