Skip to content

Commit

Permalink
add staging boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
dj2 committed Jul 13, 2011
1 parent aa6bd21 commit de10ada
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/goliath/goliath.rb
Expand Up @@ -54,4 +54,11 @@ def dev?
def test?
env == :test
end

# Determines if we are in the staging environment
#
# @return [Boolean] true if current environment is staging.
def staging?
env == :staging
end
end

0 comments on commit de10ada

Please sign in to comment.