Module: Monark

Defined in:
lib/monark.rb,
lib/monark/dsl.rb,
lib/monark/schema.rb,
lib/monark/context.rb,
lib/monark/railtie.rb,
lib/monark/version.rb,
lib/monark/migration.rb

Overview

Monark is a simple migrator.

Defined Under Namespace

Classes: Context, DSL, Migration, Railtie, Schema

Constant Summary collapse

DEFAULT_MIGRATIONS_FILE_NAME =
'Migrations.rb'
DEFAULT_ENV =
'development'
VERSION =
'0.0.3'

Class Method Summary collapse

Class Method Details

.envObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/monark.rb', line 22

def self.env
  if ENV.key?('MONARK_ENV')
    ENV['MONARK_ENV']
  elsif defined?(::Rails)
    ::Rails.env.to_s
  elsif ENV.key?('RACK_ENV')
    ENV['RACK_ENV']
  else
    DEFAULT_ENV.to_s
  end
end