Module: Foreman

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.41.0"

Class Method Summary collapse

Class Method Details

.jruby?Boolean

Returns:

  • (Boolean)


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

def self.jruby?
  defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java"
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)


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

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