Permalink
Browse files

don't minfiy on staging

  • Loading branch information...
rkh committed Dec 16, 2012
1 parent de0790c commit 55bdaf780f2f9bb61f375565144fac9a1a7b60d8
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/travis/assets.rb
View
@@ -17,12 +17,16 @@ def initialize(roots = '.')
@env = ENV['ENV']
end
+ def staging?
+ ENV['API_ENDPOINT'] =~ /staging/ unless development?
+ end
+
def production?
- env == 'production'
+ !staging? and !development?
end
def development?
- !production?
+ env != 'production'
end
def vendor_order

0 comments on commit 55bdaf7

Please sign in to comment.