24 lines
446 B
Ruby
24 lines
446 B
Ruby
require "foreman/version"
|
|
|
|
module Foreman
|
|
|
|
class AppDoesNotExist < Exception; end
|
|
|
|
def self.runner
|
|
File.expand_path("../../bin/foreman-runner", __FILE__)
|
|
end
|
|
|
|
def self.jruby_18?
|
|
defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java" and ruby_18?
|
|
end
|
|
|
|
def self.ruby_18?
|
|
defined?(RUBY_VERSION) and RUBY_VERSION =~ /^1\.8\.\d+/
|
|
end
|
|
|
|
def self.windows?
|
|
defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/
|
|
end
|
|
|
|
end
|