module Roda::RodaPlugins::Environments::ClassMethods
Public Instance Methods
Source
# File lib/roda/plugins/environments.rb, line 53 def configure(*envs) if envs.empty? || envs.any?{|s| s == environment} yield self end end
If no environments are given or one of the given environments matches the current environment, yield the receiver to the block.
Source
# File lib/roda/plugins/environments.rb, line 61 def environment opts[:environment] end
The current environment for the application, which should be stored as a symbol.
Source
# File lib/roda/plugins/environments.rb, line 67 def environment=(v) opts[:environment] = v end
Override the environment for the application, instead of using RACK_ENV.