diff --git a/lib/travis/assets.rb b/lib/travis/assets.rb index f5e5b8a9..b37412c9 100644 --- a/lib/travis/assets.rb +++ b/lib/travis/assets.rb @@ -17,12 +17,16 @@ module Travis @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