Module: Foreman

Defined in:
lib/foreman.rb,
lib/foreman/version.rb,
lib/foreman/distribution.rb

Defined Under Namespace

Modules: Distribution, Export, Helpers Classes: AppDoesNotExist, CLI, Engine, Process, Procfile

Constant Summary collapse

VERSION =
"0.66.0"

Class Method Summary collapse

Class Method Details

.jruby_18?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/foreman.rb', line 11

def self.jruby_18?
  defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java" and ruby_18?
end

.ruby_18?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/foreman.rb', line 15

def self.ruby_18?
  defined?(RUBY_VERSION) and RUBY_VERSION =~ /^1\.8\.\d+/
end

.runnerObject



7
8
9
# File 'lib/foreman.rb', line 7

def self.runner
  File.expand_path("../../bin/foreman-runner", __FILE__)
end

.windows?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/foreman.rb', line 19

def self.windows?
  defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/
end