Top Level Namespace

Defined Under Namespace

Modules: OSX, Rucola Classes: String

Constant Summary collapse

RUBYCOCOA_ENV =
'release'
RAILS_ENV =

ActiveRecord uses RAILS_ENV internally to figure out which environment key to parse in database.yml. Since we use the non-standard release and debug environments, we need to set this here

RUBYCOCOA_ENV
RUBYCOCOA_ROOT =

We are running in debug from xcode, which doesn’t set RUBYCOCOA_ROOT. Or we are simply running in release.

if RUBYCOCOA_ENV == 'debug'
  Pathname.new(ENV['DYLD_LIBRARY_PATH'] + "../../../").cleanpath
else
  Pathname.new(OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation)
end