Module: Foreman

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.77.0"

Class Method Summary collapse

Class Method Details

.ruby_18?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/foreman.rb', line 9

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

.runnerObject



5
6
7
# File 'lib/foreman.rb', line 5

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

.windows?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/foreman.rb', line 13

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