lib/timber/cli/installer.rb in timber-2.2.2 vs lib/timber/cli/installer.rb in timber-2.2.3
- old
+ new
@@ -2,10 +2,12 @@
require "timber/cli/io/messages"
module Timber
class CLI
class Installer
+ DEPRIORITIZED_PLATFORMS = ["linux", "other"].freeze
+
attr_reader :io, :api, :file_helper
def initialize(io, api)
@io = io
@api = api
@@ -16,13 +18,13 @@
raise NotImplementedError.new
end
private
def get_delivery_strategy(app)
- if app.heroku?
- :stdout
- else
+ if DEPRIORITIZED_PLATFORMS.include?(app.platform_type)
:http
+ else
+ :stdout
end
end
# Determines the API key storage prference (environment variable or inline)
def get_api_key_storage_preference
\ No newline at end of file