module StirFry
StirFry as a module provides an entrypoint to starting your app. It is also the namespace that contains the server library that will render the rbx templates.
Constants
- VERSION
-
VERSIONis the release library version
Public Class Methods
Source
# File lib/stir_fry.rb, line 46 def app_env = @app_env ||= (ENV["APP_ENV"] || ENV["RACK_ENV"] || ENV["ENV"] || :development).to_sym
Is the set environment setting evaluated from environment variables APP_ENV, RACK_ENV or ENV. It defaults to :development.
Source
# File lib/stir_fry.rb, line 49 def development? = app_env == :development
is the app running in development.
Source
# File lib/stir_fry.rb, line 58 def logger = @logger ||= default_logger
Logger is the app wide logger for any app messages.
Source
# File lib/stir_fry.rb, line 55 def production? = app_end == :production
is the app running in production
Source
# File lib/stir_fry.rb, line 52 def test? = app_env == :test
is the app running in test.