lib/timber/cli/api/application.rb in timber-2.1.0.rc3 vs lib/timber/cli/api/application.rb in timber-2.1.0.rc4
- old
+ new
@@ -1,10 +1,11 @@
module Timber
class CLI
class API
class Application
- DEVELOPMENT = "development".freeze
+ DEVELOPMENT_ENVIRONMENT = "development".freeze
+ TEST_ENVIRONMENT = "test".freeze
HEROKU = "heroku".freeze
attr_accessor :api_key, :environment, :framework_type, :heroku_drain_url,
:name, :platform_type
@@ -16,10 +17,14 @@
@name = attributes.fetch("name")
@platform_type = attributes.fetch("platform_type")
end
def development?
- environment == DEVELOPMENT
+ environment == DEVELOPMENT_ENVIRONMENT
+ end
+
+ def test?
+ environment == TEST_ENVIRONMENT
end
def heroku?
platform_type == HEROKU
end
\ No newline at end of file