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, ProcfileEntry, Utils
Constant Summary
collapse
- VERSION =
"0.37.2"
Class Method Summary
collapse
Class Method Details
.jruby? ⇒ Boolean
17
18
19
|
# File 'lib/foreman.rb', line 17
def self.jruby?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java"
end
|
.load_env!(env_file = './.env') ⇒ Object
load contents of env_file into ENV
8
9
10
11
|
# File 'lib/foreman.rb', line 8
def self.load_env!(env_file = './.env')
require 'foreman/engine'
Foreman::Engine.load_env!(env_file)
end
|
.runner ⇒ Object
13
14
15
|
# File 'lib/foreman.rb', line 13
def self.runner
File.expand_path("../../bin/runner", __FILE__)
end
|
.windows? ⇒ Boolean
21
22
23
|
# File 'lib/foreman.rb', line 21
def self.windows?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/
end
|