Sha256: 3abd9c2d6f9ee8f90fe72f56ca569d4fedb7280a7da82420958296a5a484c207
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
# encoding: utf-8 # http://wiki.github.com/botanicus/rango/environments-support module Rango # clever environments support def self.environments @@environments ||= { development: ["development"], testing: ["test", "spec", "cucumber"], production: ["stagging", "production"] } end def self.testing? self.environments[:testing].include?(Rango.environment) end def self.development? self.environments[:development].include?(Rango.environment) end def self.production? self.environments[:production].include?(Rango.environment) end end
Version data entries
6 entries across 6 versions & 1 rubygems