module Roda::RodaPlugins::Environments::ClassMethods
def configure(*envs)
If no environments are given or one of the given environments
def configure(*envs) if envs.empty? || envs.any?{|s| s == environment} yield self end end
def environment
The current environment for the application, which should be stored
def environment opts[:environment] end
def environment=(v)
Override the environment for the application, instead of using
def environment=(v) opts[:environment] = v end