Sha256: 5ebf6c266c4e2e00d23b1781a215db958c486cc7c76773496c867b109abee0c7

Contents?: true

Size: 492 Bytes

Versions: 21

Compression:

Stored size: 492 Bytes

Contents

require "foreman/version"

module Foreman

  class AppDoesNotExist < Exception; end

  # load contents of env_file into ENV
  def self.load_env!(env_file = './.env')
    require 'foreman/engine'
    Foreman::Engine.load_env!(env_file)
  end

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

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

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

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
foreman-0.38.0-mingw32 lib/foreman.rb
foreman-0.38.0-java lib/foreman.rb
foreman-0.38.0 lib/foreman.rb
foreman-0.37.2-mingw32 lib/foreman.rb
foreman-0.37.2-java lib/foreman.rb
foreman-0.37.2 lib/foreman.rb
foreman-0.37.1-mingw32 lib/foreman.rb
foreman-0.37.1-java lib/foreman.rb
foreman-0.37.1 lib/foreman.rb
foreman-0.37.0-mingw32 lib/foreman.rb
foreman-0.37.0-java lib/foreman.rb
foreman-0.37.0 lib/foreman.rb
foreman-0.37.0.pre5-mingw32 lib/foreman.rb
foreman-0.37.0.pre5-java lib/foreman.rb
foreman-0.37.0.pre5 lib/foreman.rb
foreman-0.37.0.pre4-mingw32 lib/foreman.rb
foreman-0.37.0.pre4-java lib/foreman.rb
foreman-0.37.0.pre4 lib/foreman.rb
foreman-0.37.0.pre3-mingw32 lib/foreman.rb
foreman-0.37.0.pre3-java lib/foreman.rb